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_RADEON_H_FILES
5
6FUNCS=$(nm -D --format=bsd --defined-only ${1-.libs/libdrm_radeon.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
13radeon_bo_debug
14radeon_bo_get_handle
15radeon_bo_get_src_domain
16radeon_bo_get_tiling
17radeon_bo_is_busy
18radeon_bo_is_referenced_by_cs
19radeon_bo_is_static
20radeon_bo_manager_gem_ctor
21radeon_bo_manager_gem_dtor
22radeon_bo_map
23radeon_bo_open
24radeon_bo_ref
25radeon_bo_set_tiling
26radeon_bo_unmap
27radeon_bo_unref
28radeon_bo_wait
29radeon_cs_begin
30radeon_cs_create
31radeon_cs_destroy
32radeon_cs_emit
33radeon_cs_end
34radeon_cs_erase
35radeon_cs_get_id
36radeon_cs_manager_gem_ctor
37radeon_cs_manager_gem_dtor
38radeon_cs_need_flush
39radeon_cs_print
40radeon_cs_set_limit
41radeon_cs_space_add_persistent_bo
42radeon_cs_space_check
43radeon_cs_space_check_with_bo
44radeon_cs_space_reset_bos
45radeon_cs_space_set_flush
46radeon_cs_write_reloc
47radeon_gem_bo_open_prime
48radeon_gem_get_kernel_name
49radeon_gem_get_reloc_in_cs
50radeon_gem_name_bo
51radeon_gem_prime_share_bo
52radeon_gem_set_domain
53radeon_surface_best
54radeon_surface_init
55radeon_surface_manager_free
56radeon_surface_manager_new
57EOF
58done)
59
60test ! -n "$FUNCS" || echo $FUNCS
61test ! -n "$FUNCS"
62