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