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_FREEDRENO_H_FILES
5
6FUNCS=$(nm -D --format=bsd --defined-only ${1-.libs/libdrm_freedreno.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
13fd_bo_cpu_fini
14fd_bo_cpu_prep
15fd_bo_del
16fd_bo_dmabuf
17fd_bo_from_dmabuf
18fd_bo_from_fbdev
19fd_bo_from_handle
20fd_bo_from_name
21fd_bo_get_name
22fd_bo_handle
23fd_bo_map
24fd_bo_new
25fd_bo_ref
26fd_bo_size
27fd_device_del
28fd_device_fd
29fd_device_new
30fd_device_new_dup
31fd_device_ref
32fd_device_version
33fd_pipe_del
34fd_pipe_get_param
35fd_pipe_new
36fd_pipe_wait
37fd_pipe_wait_timeout
38fd_ringbuffer_cmd_count
39fd_ringbuffer_del
40fd_ringbuffer_emit_reloc_ring
41fd_ringbuffer_emit_reloc_ring_full
42fd_ringbuffer_flush
43fd_ringbuffer_grow
44fd_ringbuffer_new
45fd_ringbuffer_reloc
46fd_ringbuffer_reloc2
47fd_ringbuffer_reset
48fd_ringbuffer_set_parent
49fd_ringbuffer_timestamp
50fd_ringmarker_del
51fd_ringmarker_dwords
52fd_ringmarker_flush
53fd_ringbuffer_flush2
54fd_ringmarker_mark
55fd_ringmarker_new
56EOF
57done)
58
59test ! -n "$FUNCS" || echo $FUNCS
60test ! -n "$FUNCS"
61