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_va_op_raw 26amdgpu_bo_wait_for_idle 27amdgpu_create_bo_from_user_mem 28amdgpu_cs_chunk_fence_info_to_data 29amdgpu_cs_chunk_fence_to_dep 30amdgpu_cs_create_semaphore 31amdgpu_cs_create_syncobj 32amdgpu_cs_create_syncobj2 33amdgpu_cs_ctx_create 34amdgpu_cs_ctx_create2 35amdgpu_cs_ctx_free 36amdgpu_cs_destroy_semaphore 37amdgpu_cs_destroy_syncobj 38amdgpu_cs_export_syncobj 39amdgpu_cs_fence_to_handle 40amdgpu_cs_import_syncobj 41amdgpu_cs_query_fence_status 42amdgpu_cs_query_reset_state 43amdgpu_query_sw_info 44amdgpu_cs_signal_semaphore 45amdgpu_cs_submit 46amdgpu_cs_submit_raw 47amdgpu_cs_syncobj_export_sync_file 48amdgpu_cs_syncobj_import_sync_file 49amdgpu_cs_syncobj_reset 50amdgpu_cs_syncobj_signal 51amdgpu_cs_syncobj_wait 52amdgpu_cs_wait_fences 53amdgpu_cs_wait_semaphore 54amdgpu_device_deinitialize 55amdgpu_device_initialize 56amdgpu_get_marketing_name 57amdgpu_query_buffer_size_alignment 58amdgpu_query_crtc_from_id 59amdgpu_query_firmware_version 60amdgpu_query_gds_info 61amdgpu_query_gpu_info 62amdgpu_query_heap_info 63amdgpu_query_hw_ip_count 64amdgpu_query_hw_ip_info 65amdgpu_query_info 66amdgpu_query_sensor_info 67amdgpu_read_mm_registers 68amdgpu_va_range_alloc 69amdgpu_va_range_free 70amdgpu_va_range_query 71amdgpu_vm_reserve_vmid 72amdgpu_vm_unreserve_vmid 73EOF 74done) 75 76test ! -n "$FUNCS" || echo $FUNCS 77test ! -n "$FUNCS" 78