1#!/bin/bash
2
3# The following symbols (past the first five) are taken from the public headers.
4# A list of the latter should be available Makefile.sources/LIBDRM_ETNAVIV_H_FILES
5
6FUNCS=$(nm -D --format=bsd --defined-only ${1-.libs/libdrm_etnaviv.so} | awk '{print $3}'| while read func; do
7( grep -q "^$func$" || echo $func )  <<EOF
8__bss_start
9_edata
10_end
11_fini
12_init
13etna_device_new
14etna_device_new_dup
15etna_device_ref
16etna_device_del
17etna_device_fd
18etna_gpu_new
19etna_gpu_del
20etna_gpu_get_param
21etna_pipe_new
22etna_pipe_del
23etna_pipe_wait
24etna_pipe_wait_ns
25etna_bo_new
26etna_bo_from_handle
27etna_bo_from_name
28etna_bo_from_dmabuf
29etna_bo_ref
30etna_bo_del
31etna_bo_get_name
32etna_bo_handle
33etna_bo_dmabuf
34etna_bo_size
35etna_bo_map
36etna_bo_cpu_prep
37etna_bo_cpu_fini
38etna_cmd_stream_new
39etna_cmd_stream_del
40etna_cmd_stream_timestamp
41etna_cmd_stream_flush
42etna_cmd_stream_flush2
43etna_cmd_stream_finish
44etna_cmd_stream_perf
45etna_cmd_stream_reloc
46etna_perfmon_create
47etna_perfmon_del
48etna_perfmon_get_dom_by_name
49etna_perfmon_get_sig_by_name
50EOF
51done)
52
53test ! -n "$FUNCS" || echo $FUNCS
54test ! -n "$FUNCS"
55