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.am/libdrm_amdgpuinclude_HEADERS 5 6 FUNCS=$(nm -D --format=bsd --defined-only ${1-.libs/libdrm_amdgpu.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 amdgpu_bo_alloc 14 amdgpu_bo_cpu_map 15 amdgpu_bo_cpu_unmap 16 amdgpu_bo_export 17 amdgpu_bo_free 18 amdgpu_bo_import 19 amdgpu_bo_list_create 20 amdgpu_bo_list_destroy 21 amdgpu_bo_list_update 22 amdgpu_bo_query_info 23 amdgpu_bo_set_metadata 24 amdgpu_bo_va_op 25 amdgpu_bo_wait_for_idle 26 amdgpu_create_bo_from_user_mem 27 amdgpu_cs_create_semaphore 28 amdgpu_cs_ctx_create 29 amdgpu_cs_ctx_free 30 amdgpu_cs_destroy_semaphore 31 amdgpu_cs_query_fence_status 32 amdgpu_cs_query_reset_state 33 amdgpu_cs_signal_semaphore 34 amdgpu_cs_submit 35 amdgpu_cs_wait_semaphore 36 amdgpu_device_deinitialize 37 amdgpu_device_initialize 38 amdgpu_get_marketing_name 39 amdgpu_query_buffer_size_alignment 40 amdgpu_query_crtc_from_id 41 amdgpu_query_firmware_version 42 amdgpu_query_gds_info 43 amdgpu_query_gpu_info 44 amdgpu_query_heap_info 45 amdgpu_query_hw_ip_count 46 amdgpu_query_hw_ip_info 47 amdgpu_query_info 48 amdgpu_read_mm_registers 49 amdgpu_va_range_alloc 50 amdgpu_va_range_free 51 amdgpu_va_range_query 52 EOF 53 done) 54 55 test ! -n "$FUNCS" || echo $FUNCS 56 test ! -n "$FUNCS" 57