amdgpu-symbol-check 1.83 KB
Newer Older
Emil Velikov's avatar
Emil Velikov committed
1
2
3
4
5
#!/bin/bash

# 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

6
FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_amdgpu.so} | awk '{print $3}' | while read func; do
Emil Velikov's avatar
Emil Velikov committed
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
( 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
amdgpu_bo_list_create
amdgpu_bo_list_destroy
amdgpu_bo_list_update
amdgpu_bo_query_info
amdgpu_bo_set_metadata
amdgpu_bo_va_op
25
amdgpu_bo_va_op_raw
Emil Velikov's avatar
Emil Velikov committed
26
27
amdgpu_bo_wait_for_idle
amdgpu_create_bo_from_user_mem
28
29
amdgpu_cs_chunk_fence_info_to_data
amdgpu_cs_chunk_fence_to_dep
30
amdgpu_cs_create_semaphore
31
amdgpu_cs_create_syncobj
32
amdgpu_cs_create_syncobj2
Emil Velikov's avatar
Emil Velikov committed
33
amdgpu_cs_ctx_create
34
amdgpu_cs_ctx_create2
Emil Velikov's avatar
Emil Velikov committed
35
amdgpu_cs_ctx_free
36
amdgpu_cs_destroy_semaphore
37
38
amdgpu_cs_destroy_syncobj
amdgpu_cs_export_syncobj
39
amdgpu_cs_fence_to_handle
40
amdgpu_cs_import_syncobj
Emil Velikov's avatar
Emil Velikov committed
41
42
amdgpu_cs_query_fence_status
amdgpu_cs_query_reset_state
43
amdgpu_query_sw_info
44
amdgpu_cs_signal_semaphore
Emil Velikov's avatar
Emil Velikov committed
45
amdgpu_cs_submit
46
amdgpu_cs_submit_raw
47
48
amdgpu_cs_syncobj_export_sync_file
amdgpu_cs_syncobj_import_sync_file
49
50
amdgpu_cs_syncobj_reset
amdgpu_cs_syncobj_signal
51
amdgpu_cs_syncobj_wait
52
amdgpu_cs_wait_fences
53
amdgpu_cs_wait_semaphore
Emil Velikov's avatar
Emil Velikov committed
54
55
amdgpu_device_deinitialize
amdgpu_device_initialize
56
amdgpu_get_marketing_name
Emil Velikov's avatar
Emil Velikov committed
57
58
59
60
61
62
63
64
65
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
66
amdgpu_query_sensor_info
Emil Velikov's avatar
Emil Velikov committed
67
68
69
70
amdgpu_read_mm_registers
amdgpu_va_range_alloc
amdgpu_va_range_free
amdgpu_va_range_query
71
72
amdgpu_vm_reserve_vmid
amdgpu_vm_unreserve_vmid
Emil Velikov's avatar
Emil Velikov committed
73
74
75
76
77
EOF
done)

test ! -n "$FUNCS" || echo $FUNCS
test ! -n "$FUNCS"