1#!/bin/bash 2 3set -u 4 5# The following symbols (past the first five) are taken from the public headers. 6# A list of the latter should be available Makefile.am/libdrm_amdgpuinclude_HEADERS 7 8FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_amdgpu.so} | awk '{print $3}' | while read func; do 9( grep -q "^$func$" || echo $func ) <<EOF 10__bss_start 11_edata 12_end 13_fini 14_init 15amdgpu_bo_alloc 16amdgpu_bo_cpu_map 17amdgpu_bo_cpu_unmap 18amdgpu_bo_export 19amdgpu_bo_free 20amdgpu_bo_import 21amdgpu_bo_inc_ref 22amdgpu_bo_list_create_raw 23amdgpu_bo_list_destroy_raw 24amdgpu_bo_list_create 25amdgpu_bo_list_destroy 26amdgpu_bo_list_update 27amdgpu_bo_query_info 28amdgpu_bo_set_metadata 29amdgpu_bo_va_op 30amdgpu_bo_va_op_raw 31amdgpu_bo_wait_for_idle 32amdgpu_create_bo_from_user_mem 33amdgpu_cs_chunk_fence_info_to_data 34amdgpu_cs_chunk_fence_to_dep 35amdgpu_cs_create_semaphore 36amdgpu_cs_create_syncobj 37amdgpu_cs_create_syncobj2 38amdgpu_cs_ctx_create 39amdgpu_cs_ctx_create2 40amdgpu_cs_ctx_free 41amdgpu_cs_ctx_override_priority 42amdgpu_cs_destroy_semaphore 43amdgpu_cs_destroy_syncobj 44amdgpu_cs_export_syncobj 45amdgpu_cs_fence_to_handle 46amdgpu_cs_import_syncobj 47amdgpu_cs_query_fence_status 48amdgpu_cs_query_reset_state 49amdgpu_query_sw_info 50amdgpu_cs_signal_semaphore 51amdgpu_cs_submit 52amdgpu_cs_submit_raw 53amdgpu_cs_submit_raw2 54amdgpu_cs_syncobj_export_sync_file 55amdgpu_cs_syncobj_export_sync_file2 56amdgpu_cs_syncobj_import_sync_file 57amdgpu_cs_syncobj_import_sync_file2 58amdgpu_cs_syncobj_query 59amdgpu_cs_syncobj_reset 60amdgpu_cs_syncobj_signal 61amdgpu_cs_syncobj_timeline_signal 62amdgpu_cs_syncobj_timeline_wait 63amdgpu_cs_syncobj_transfer 64amdgpu_cs_syncobj_wait 65amdgpu_cs_wait_fences 66amdgpu_cs_wait_semaphore 67amdgpu_device_deinitialize 68amdgpu_device_initialize 69amdgpu_find_bo_by_cpu_mapping 70amdgpu_get_marketing_name 71amdgpu_query_buffer_size_alignment 72amdgpu_query_crtc_from_id 73amdgpu_query_firmware_version 74amdgpu_query_gds_info 75amdgpu_query_gpu_info 76amdgpu_query_heap_info 77amdgpu_query_hw_ip_count 78amdgpu_query_hw_ip_info 79amdgpu_query_info 80amdgpu_query_sensor_info 81amdgpu_read_mm_registers 82amdgpu_va_range_alloc 83amdgpu_va_range_free 84amdgpu_va_range_query 85amdgpu_vm_reserve_vmid 86amdgpu_vm_unreserve_vmid 87EOF 88done) 89 90test ! -n "$FUNCS" || echo $FUNCS 91test ! -n "$FUNCS" 92