blob: bc9ed3f90a7db57db0d108e5ab98d811f07ef5e0 [file] [log] [blame]
Emil Velikov15350562015-08-07 17:29:11 +01001#!/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
Emil Velikovf5995752017-04-03 17:40:59 +010025amdgpu_bo_va_op_raw
Emil Velikov15350562015-08-07 17:29:11 +010026amdgpu_bo_wait_for_idle
27amdgpu_create_bo_from_user_mem
Dave Airliee12af382017-07-19 00:40:38 +010028amdgpu_cs_chunk_fence_info_to_data
29amdgpu_cs_chunk_fence_to_dep
Michel Dänzer25712f12016-01-20 15:59:08 +090030amdgpu_cs_create_semaphore
Dave Airliee12af382017-07-19 00:40:38 +010031amdgpu_cs_create_syncobj
Emil Velikov15350562015-08-07 17:29:11 +010032amdgpu_cs_ctx_create
33amdgpu_cs_ctx_free
Michel Dänzer25712f12016-01-20 15:59:08 +090034amdgpu_cs_destroy_semaphore
Dave Airliee12af382017-07-19 00:40:38 +010035amdgpu_cs_destroy_syncobj
36amdgpu_cs_export_syncobj
37amdgpu_cs_import_syncobj
Emil Velikov15350562015-08-07 17:29:11 +010038amdgpu_cs_query_fence_status
39amdgpu_cs_query_reset_state
Michel Dänzer25712f12016-01-20 15:59:08 +090040amdgpu_cs_signal_semaphore
Emil Velikov15350562015-08-07 17:29:11 +010041amdgpu_cs_submit
Dave Airliee12af382017-07-19 00:40:38 +010042amdgpu_cs_submit_raw
Marek Olšákb6e24502017-09-11 21:12:12 +020043amdgpu_cs_syncobj_export_sync_file
44amdgpu_cs_syncobj_import_sync_file
Nicolai Hähnled8d45a42017-04-13 16:43:14 +020045amdgpu_cs_wait_fences
Michel Dänzer25712f12016-01-20 15:59:08 +090046amdgpu_cs_wait_semaphore
Emil Velikov15350562015-08-07 17:29:11 +010047amdgpu_device_deinitialize
48amdgpu_device_initialize
Junwei Zhang670f1e42016-09-12 11:14:11 -040049amdgpu_get_marketing_name
Emil Velikov15350562015-08-07 17:29:11 +010050amdgpu_query_buffer_size_alignment
51amdgpu_query_crtc_from_id
52amdgpu_query_firmware_version
53amdgpu_query_gds_info
54amdgpu_query_gpu_info
55amdgpu_query_heap_info
56amdgpu_query_hw_ip_count
57amdgpu_query_hw_ip_info
58amdgpu_query_info
Samuel Pitoiset047aba12017-04-04 16:34:56 +020059amdgpu_query_sensor_info
Emil Velikov15350562015-08-07 17:29:11 +010060amdgpu_read_mm_registers
61amdgpu_va_range_alloc
62amdgpu_va_range_free
63amdgpu_va_range_query
64EOF
65done)
66
67test ! -n "$FUNCS" || echo $FUNCS
68test ! -n "$FUNCS"