OSDN Git Service

tests/amdgpu: divide dispatch test into compute and gfx
[android-x86/external-libdrm.git] / amdgpu / amdgpu-symbol-check
1 #!/bin/bash
2
3 set -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
8 FUNCS=$($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
15 amdgpu_bo_alloc
16 amdgpu_bo_cpu_map
17 amdgpu_bo_cpu_unmap
18 amdgpu_bo_export
19 amdgpu_bo_free
20 amdgpu_bo_import
21 amdgpu_bo_inc_ref
22 amdgpu_bo_list_create_raw
23 amdgpu_bo_list_destroy_raw
24 amdgpu_bo_list_create
25 amdgpu_bo_list_destroy
26 amdgpu_bo_list_update
27 amdgpu_bo_query_info
28 amdgpu_bo_set_metadata
29 amdgpu_bo_va_op
30 amdgpu_bo_va_op_raw
31 amdgpu_bo_wait_for_idle
32 amdgpu_create_bo_from_user_mem
33 amdgpu_cs_chunk_fence_info_to_data
34 amdgpu_cs_chunk_fence_to_dep
35 amdgpu_cs_create_semaphore
36 amdgpu_cs_create_syncobj
37 amdgpu_cs_create_syncobj2
38 amdgpu_cs_ctx_create
39 amdgpu_cs_ctx_create2
40 amdgpu_cs_ctx_free
41 amdgpu_cs_ctx_override_priority
42 amdgpu_cs_destroy_semaphore
43 amdgpu_cs_destroy_syncobj
44 amdgpu_cs_export_syncobj
45 amdgpu_cs_fence_to_handle
46 amdgpu_cs_import_syncobj
47 amdgpu_cs_query_fence_status
48 amdgpu_cs_query_reset_state
49 amdgpu_query_sw_info
50 amdgpu_cs_signal_semaphore
51 amdgpu_cs_submit
52 amdgpu_cs_submit_raw
53 amdgpu_cs_submit_raw2
54 amdgpu_cs_syncobj_export_sync_file
55 amdgpu_cs_syncobj_export_sync_file2
56 amdgpu_cs_syncobj_import_sync_file
57 amdgpu_cs_syncobj_import_sync_file2
58 amdgpu_cs_syncobj_query
59 amdgpu_cs_syncobj_reset
60 amdgpu_cs_syncobj_signal
61 amdgpu_cs_syncobj_timeline_signal
62 amdgpu_cs_syncobj_timeline_wait
63 amdgpu_cs_syncobj_transfer
64 amdgpu_cs_syncobj_wait
65 amdgpu_cs_wait_fences
66 amdgpu_cs_wait_semaphore
67 amdgpu_device_deinitialize
68 amdgpu_device_initialize
69 amdgpu_find_bo_by_cpu_mapping
70 amdgpu_get_marketing_name
71 amdgpu_query_buffer_size_alignment
72 amdgpu_query_crtc_from_id
73 amdgpu_query_firmware_version
74 amdgpu_query_gds_info
75 amdgpu_query_gpu_info
76 amdgpu_query_heap_info
77 amdgpu_query_hw_ip_count
78 amdgpu_query_hw_ip_info
79 amdgpu_query_info
80 amdgpu_query_sensor_info
81 amdgpu_read_mm_registers
82 amdgpu_va_range_alloc
83 amdgpu_va_range_free
84 amdgpu_va_range_query
85 amdgpu_vm_reserve_vmid
86 amdgpu_vm_unreserve_vmid
87 EOF
88 done)
89
90 test ! -n "$FUNCS" || echo $FUNCS
91 test ! -n "$FUNCS"