Emil Velikov | 1535056 | 2015-08-07 17:29:11 +0100 | [diff] [blame] | 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 | |
| 6 | FUNCS=$(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 |
| 13 | amdgpu_bo_alloc |
| 14 | amdgpu_bo_cpu_map |
| 15 | amdgpu_bo_cpu_unmap |
| 16 | amdgpu_bo_export |
| 17 | amdgpu_bo_free |
| 18 | amdgpu_bo_import |
| 19 | amdgpu_bo_list_create |
| 20 | amdgpu_bo_list_destroy |
| 21 | amdgpu_bo_list_update |
| 22 | amdgpu_bo_query_info |
| 23 | amdgpu_bo_set_metadata |
| 24 | amdgpu_bo_va_op |
Emil Velikov | f599575 | 2017-04-03 17:40:59 +0100 | [diff] [blame] | 25 | amdgpu_bo_va_op_raw |
Emil Velikov | 1535056 | 2015-08-07 17:29:11 +0100 | [diff] [blame] | 26 | amdgpu_bo_wait_for_idle |
| 27 | amdgpu_create_bo_from_user_mem |
Dave Airlie | e12af38 | 2017-07-19 00:40:38 +0100 | [diff] [blame] | 28 | amdgpu_cs_chunk_fence_info_to_data |
| 29 | amdgpu_cs_chunk_fence_to_dep |
Michel Dänzer | 25712f1 | 2016-01-20 15:59:08 +0900 | [diff] [blame] | 30 | amdgpu_cs_create_semaphore |
Dave Airlie | e12af38 | 2017-07-19 00:40:38 +0100 | [diff] [blame] | 31 | amdgpu_cs_create_syncobj |
Emil Velikov | 1535056 | 2015-08-07 17:29:11 +0100 | [diff] [blame] | 32 | amdgpu_cs_ctx_create |
Andres Rodriguez | 35bc82c | 2017-10-20 10:57:59 -0400 | [diff] [blame] | 33 | amdgpu_cs_ctx_create2 |
Emil Velikov | 1535056 | 2015-08-07 17:29:11 +0100 | [diff] [blame] | 34 | amdgpu_cs_ctx_free |
Michel Dänzer | 25712f1 | 2016-01-20 15:59:08 +0900 | [diff] [blame] | 35 | amdgpu_cs_destroy_semaphore |
Dave Airlie | e12af38 | 2017-07-19 00:40:38 +0100 | [diff] [blame] | 36 | amdgpu_cs_destroy_syncobj |
| 37 | amdgpu_cs_export_syncobj |
Marek Olšák | c74d461 | 2017-09-08 16:05:54 +0200 | [diff] [blame] | 38 | amdgpu_cs_fence_to_handle |
Dave Airlie | e12af38 | 2017-07-19 00:40:38 +0100 | [diff] [blame] | 39 | amdgpu_cs_import_syncobj |
Emil Velikov | 1535056 | 2015-08-07 17:29:11 +0100 | [diff] [blame] | 40 | amdgpu_cs_query_fence_status |
| 41 | amdgpu_cs_query_reset_state |
Michel Dänzer | 25712f1 | 2016-01-20 15:59:08 +0900 | [diff] [blame] | 42 | amdgpu_cs_signal_semaphore |
Emil Velikov | 1535056 | 2015-08-07 17:29:11 +0100 | [diff] [blame] | 43 | amdgpu_cs_submit |
Dave Airlie | e12af38 | 2017-07-19 00:40:38 +0100 | [diff] [blame] | 44 | amdgpu_cs_submit_raw |
Marek Olšák | b6e2450 | 2017-09-11 21:12:12 +0200 | [diff] [blame] | 45 | amdgpu_cs_syncobj_export_sync_file |
| 46 | amdgpu_cs_syncobj_import_sync_file |
Marek Olšák | 59aa57b | 2017-09-11 21:58:03 +0200 | [diff] [blame] | 47 | amdgpu_cs_syncobj_wait |
Nicolai Hähnle | d8d45a4 | 2017-04-13 16:43:14 +0200 | [diff] [blame] | 48 | amdgpu_cs_wait_fences |
Michel Dänzer | 25712f1 | 2016-01-20 15:59:08 +0900 | [diff] [blame] | 49 | amdgpu_cs_wait_semaphore |
Emil Velikov | 1535056 | 2015-08-07 17:29:11 +0100 | [diff] [blame] | 50 | amdgpu_device_deinitialize |
| 51 | amdgpu_device_initialize |
Junwei Zhang | 670f1e4 | 2016-09-12 11:14:11 -0400 | [diff] [blame] | 52 | amdgpu_get_marketing_name |
Emil Velikov | 1535056 | 2015-08-07 17:29:11 +0100 | [diff] [blame] | 53 | amdgpu_query_buffer_size_alignment |
| 54 | amdgpu_query_crtc_from_id |
| 55 | amdgpu_query_firmware_version |
| 56 | amdgpu_query_gds_info |
| 57 | amdgpu_query_gpu_info |
| 58 | amdgpu_query_heap_info |
| 59 | amdgpu_query_hw_ip_count |
| 60 | amdgpu_query_hw_ip_info |
| 61 | amdgpu_query_info |
Samuel Pitoiset | 047aba1 | 2017-04-04 16:34:56 +0200 | [diff] [blame] | 62 | amdgpu_query_sensor_info |
Emil Velikov | 1535056 | 2015-08-07 17:29:11 +0100 | [diff] [blame] | 63 | amdgpu_read_mm_registers |
| 64 | amdgpu_va_range_alloc |
| 65 | amdgpu_va_range_free |
| 66 | amdgpu_va_range_query |
Andrey Grodzovsky | 9b38ea8 | 2017-10-27 11:09:10 -0400 | [diff] [blame] | 67 | amdgpu_vm_reserve_vmid |
| 68 | amdgpu_vm_unreserve_vmid |
Emil Velikov | 1535056 | 2015-08-07 17:29:11 +0100 | [diff] [blame] | 69 | EOF |
| 70 | done) |
| 71 | |
| 72 | test ! -n "$FUNCS" || echo $FUNCS |
| 73 | test ! -n "$FUNCS" |