2019-06-16 14:23:41 +01:00
|
|
|
#!/bin/sh
|
2015-08-07 17:29:11 +01:00
|
|
|
|
2018-09-06 15:50:59 +01:00
|
|
|
set -u
|
|
|
|
|
|
2015-08-07 17:29:11 +01:00
|
|
|
# The following symbols (past the first five) are taken from the public headers.
|
|
|
|
|
# A list of the latter should be available Makefile.am/libdrm_amdgpuinclude_HEADERS
|
|
|
|
|
|
2018-02-19 15:13:15 +00:00
|
|
|
FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_amdgpu.so} | awk '{print $3}' | while read func; do
|
2015-08-07 17:29:11 +01:00
|
|
|
( grep -q "^$func$" || echo $func ) <<EOF
|
|
|
|
|
__bss_start
|
|
|
|
|
_edata
|
|
|
|
|
_end
|
|
|
|
|
_fini
|
|
|
|
|
_init
|
|
|
|
|
amdgpu_bo_alloc
|
|
|
|
|
amdgpu_bo_cpu_map
|
|
|
|
|
amdgpu_bo_cpu_unmap
|
|
|
|
|
amdgpu_bo_export
|
|
|
|
|
amdgpu_bo_free
|
|
|
|
|
amdgpu_bo_import
|
2018-09-03 18:06:02 +08:00
|
|
|
amdgpu_bo_inc_ref
|
2019-01-07 13:28:12 -05:00
|
|
|
amdgpu_bo_list_create_raw
|
|
|
|
|
amdgpu_bo_list_destroy_raw
|
2015-08-07 17:29:11 +01:00
|
|
|
amdgpu_bo_list_create
|
|
|
|
|
amdgpu_bo_list_destroy
|
|
|
|
|
amdgpu_bo_list_update
|
|
|
|
|
amdgpu_bo_query_info
|
|
|
|
|
amdgpu_bo_set_metadata
|
|
|
|
|
amdgpu_bo_va_op
|
2017-04-03 17:40:59 +01:00
|
|
|
amdgpu_bo_va_op_raw
|
2015-08-07 17:29:11 +01:00
|
|
|
amdgpu_bo_wait_for_idle
|
|
|
|
|
amdgpu_create_bo_from_user_mem
|
2017-07-19 00:40:38 +01:00
|
|
|
amdgpu_cs_chunk_fence_info_to_data
|
|
|
|
|
amdgpu_cs_chunk_fence_to_dep
|
2016-01-20 15:59:08 +09:00
|
|
|
amdgpu_cs_create_semaphore
|
2017-07-19 00:40:38 +01:00
|
|
|
amdgpu_cs_create_syncobj
|
2017-11-30 15:52:50 +01:00
|
|
|
amdgpu_cs_create_syncobj2
|
2015-08-07 17:29:11 +01:00
|
|
|
amdgpu_cs_ctx_create
|
2017-10-20 10:57:59 -04:00
|
|
|
amdgpu_cs_ctx_create2
|
2015-08-07 17:29:11 +01:00
|
|
|
amdgpu_cs_ctx_free
|
2019-01-28 22:20:20 +01:00
|
|
|
amdgpu_cs_ctx_override_priority
|
2016-01-20 15:59:08 +09:00
|
|
|
amdgpu_cs_destroy_semaphore
|
2017-07-19 00:40:38 +01:00
|
|
|
amdgpu_cs_destroy_syncobj
|
|
|
|
|
amdgpu_cs_export_syncobj
|
2017-09-08 16:05:54 +02:00
|
|
|
amdgpu_cs_fence_to_handle
|
2017-07-19 00:40:38 +01:00
|
|
|
amdgpu_cs_import_syncobj
|
2015-08-07 17:29:11 +01:00
|
|
|
amdgpu_cs_query_fence_status
|
|
|
|
|
amdgpu_cs_query_reset_state
|
2018-02-12 15:47:55 +01:00
|
|
|
amdgpu_query_sw_info
|
2016-01-20 15:59:08 +09:00
|
|
|
amdgpu_cs_signal_semaphore
|
2015-08-07 17:29:11 +01:00
|
|
|
amdgpu_cs_submit
|
2017-07-19 00:40:38 +01:00
|
|
|
amdgpu_cs_submit_raw
|
2019-01-07 13:28:12 -05:00
|
|
|
amdgpu_cs_submit_raw2
|
2017-09-11 21:12:12 +02:00
|
|
|
amdgpu_cs_syncobj_export_sync_file
|
2019-05-16 16:07:12 +08:00
|
|
|
amdgpu_cs_syncobj_export_sync_file2
|
2017-09-11 21:12:12 +02:00
|
|
|
amdgpu_cs_syncobj_import_sync_file
|
2019-05-16 16:07:12 +08:00
|
|
|
amdgpu_cs_syncobj_import_sync_file2
|
2019-05-16 16:07:10 +08:00
|
|
|
amdgpu_cs_syncobj_query
|
2017-12-17 00:27:10 +01:00
|
|
|
amdgpu_cs_syncobj_reset
|
|
|
|
|
amdgpu_cs_syncobj_signal
|
2019-05-16 16:07:12 +08:00
|
|
|
amdgpu_cs_syncobj_timeline_signal
|
2019-05-16 16:07:10 +08:00
|
|
|
amdgpu_cs_syncobj_timeline_wait
|
2019-05-16 14:43:22 +02:00
|
|
|
amdgpu_cs_syncobj_transfer
|
2017-09-11 21:58:03 +02:00
|
|
|
amdgpu_cs_syncobj_wait
|
2017-04-13 16:43:14 +02:00
|
|
|
amdgpu_cs_wait_fences
|
2016-01-20 15:59:08 +09:00
|
|
|
amdgpu_cs_wait_semaphore
|
2015-08-07 17:29:11 +01:00
|
|
|
amdgpu_device_deinitialize
|
|
|
|
|
amdgpu_device_initialize
|
2018-08-27 11:48:48 +02:00
|
|
|
amdgpu_find_bo_by_cpu_mapping
|
2016-09-12 11:14:11 -04:00
|
|
|
amdgpu_get_marketing_name
|
2015-08-07 17:29:11 +01:00
|
|
|
amdgpu_query_buffer_size_alignment
|
|
|
|
|
amdgpu_query_crtc_from_id
|
|
|
|
|
amdgpu_query_firmware_version
|
|
|
|
|
amdgpu_query_gds_info
|
|
|
|
|
amdgpu_query_gpu_info
|
|
|
|
|
amdgpu_query_heap_info
|
|
|
|
|
amdgpu_query_hw_ip_count
|
|
|
|
|
amdgpu_query_hw_ip_info
|
|
|
|
|
amdgpu_query_info
|
2017-04-04 16:34:56 +02:00
|
|
|
amdgpu_query_sensor_info
|
2015-08-07 17:29:11 +01:00
|
|
|
amdgpu_read_mm_registers
|
|
|
|
|
amdgpu_va_range_alloc
|
|
|
|
|
amdgpu_va_range_free
|
|
|
|
|
amdgpu_va_range_query
|
2017-10-27 11:09:10 -04:00
|
|
|
amdgpu_vm_reserve_vmid
|
|
|
|
|
amdgpu_vm_unreserve_vmid
|
2015-08-07 17:29:11 +01:00
|
|
|
EOF
|
|
|
|
|
done)
|
|
|
|
|
|
|
|
|
|
test ! -n "$FUNCS" || echo $FUNCS
|
|
|
|
|
test ! -n "$FUNCS"
|