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 6 FUNCS=$(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 13 etna_device_new 14 etna_device_new_dup 15 etna_device_ref 16 etna_device_del 17 etna_device_fd 18 etna_gpu_new 19 etna_gpu_del 20 etna_gpu_get_param 21 etna_pipe_new 22 etna_pipe_del 23 etna_pipe_wait 24 etna_pipe_wait_ns 25 etna_bo_new 26 etna_bo_from_handle 27 etna_bo_from_name 28 etna_bo_from_dmabuf 29 etna_bo_ref 30 etna_bo_del 31 etna_bo_get_name 32 etna_bo_handle 33 etna_bo_dmabuf 34 etna_bo_size 35 etna_bo_map 36 etna_bo_cpu_prep 37 etna_bo_cpu_fini 38 etna_cmd_stream_new 39 etna_cmd_stream_del 40 etna_cmd_stream_timestamp 41 etna_cmd_stream_flush 42 etna_cmd_stream_flush2 43 etna_cmd_stream_finish 44 etna_cmd_stream_perf 45 etna_cmd_stream_reloc 46 etna_perfmon_create 47 etna_perfmon_del 48 etna_perfmon_get_dom_by_name 49 etna_perfmon_get_sig_by_name 50 EOF 51 done) 52 53 test ! -n "$FUNCS" || echo $FUNCS 54 test ! -n "$FUNCS" 55