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.sources/LIBDRM_INTEL_H_FILES
5
6FUNCS=$(nm -D --format=bsd --defined-only ${1-.libs/libdrm_intel.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
13drm_intel_bo_alloc
14drm_intel_bo_alloc_for_render
15drm_intel_bo_alloc_tiled
16drm_intel_bo_alloc_userptr
17drm_intel_bo_busy
18drm_intel_bo_disable_reuse
19drm_intel_bo_emit_reloc
20drm_intel_bo_emit_reloc_fence
21drm_intel_bo_exec
22drm_intel_bo_fake_alloc_static
23drm_intel_bo_fake_disable_backing_store
24drm_intel_bo_flink
25drm_intel_bo_gem_create_from_name
26drm_intel_bo_gem_create_from_prime
27drm_intel_bo_gem_export_to_prime
28drm_intel_bo_get_subdata
29drm_intel_bo_get_tiling
30drm_intel_bo_is_reusable
31drm_intel_bo_madvise
32drm_intel_bo_map
33drm_intel_bo_mrb_exec
34drm_intel_bo_pin
35drm_intel_bo_reference
36drm_intel_bo_references
37drm_intel_bo_set_softpin_offset
38drm_intel_bo_set_tiling
39drm_intel_bo_subdata
40drm_intel_bo_unmap
41drm_intel_bo_unpin
42drm_intel_bo_unreference
43drm_intel_bo_use_48b_address_range
44drm_intel_bo_wait_rendering
45drm_intel_bufmgr_check_aperture_space
46drm_intel_bufmgr_destroy
47drm_intel_bufmgr_fake_contended_lock_take
48drm_intel_bufmgr_fake_evict_all
49drm_intel_bufmgr_fake_init
50drm_intel_bufmgr_fake_set_exec_callback
51drm_intel_bufmgr_fake_set_fence_callback
52drm_intel_bufmgr_fake_set_last_dispatch
53drm_intel_bufmgr_gem_enable_fenced_relocs
54drm_intel_bufmgr_gem_enable_reuse
55drm_intel_bufmgr_gem_get_devid
56drm_intel_bufmgr_gem_init
57drm_intel_bufmgr_gem_set_aub_annotations
58drm_intel_bufmgr_gem_set_aub_dump
59drm_intel_bufmgr_gem_set_aub_filename
60drm_intel_bufmgr_gem_set_vma_cache_size
61drm_intel_bufmgr_set_debug
62drm_intel_decode
63drm_intel_decode_context_alloc
64drm_intel_decode_context_free
65drm_intel_decode_set_batch_pointer
66drm_intel_decode_set_dump_past_end
67drm_intel_decode_set_head_tail
68drm_intel_decode_set_output_file
69drm_intel_gem_bo_aub_dump_bmp
70drm_intel_gem_bo_clear_relocs
71drm_intel_gem_bo_context_exec
72drm_intel_gem_bo_get_reloc_count
73drm_intel_gem_bo_map_gtt
74drm_intel_gem_bo_map_unsynchronized
75drm_intel_gem_bo_start_gtt_access
76drm_intel_gem_bo_unmap_gtt
77drm_intel_gem_bo_wait
78drm_intel_gem_context_create
79drm_intel_gem_context_destroy
80drm_intel_get_aperture_sizes
81drm_intel_get_eu_total
82drm_intel_get_pipe_from_crtc_id
83drm_intel_get_reset_stats
84drm_intel_get_subslice_total
85drm_intel_reg_read
86EOF
87done)
88
89test ! -n "$FUNCS" || echo $FUNCS
90test ! -n "$FUNCS"
91