freedreno-symbol-check 1.17 KB
Newer Older
Emil Velikov's avatar
Emil Velikov committed
1
2
3
4
5
#!/bin/bash

# The following symbols (past the first five) are taken from the public headers.
# A list of the latter should be available Makefile.sources/LIBDRM_FREEDRENO_H_FILES

6
FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_freedreno.so} | awk '{print $3}'| while read func; do
Emil Velikov's avatar
Emil Velikov committed
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
( grep -q "^$func$" || echo $func )  <<EOF
__bss_start
_edata
_end
_fini
_init
fd_bo_cpu_fini
fd_bo_cpu_prep
fd_bo_del
fd_bo_dmabuf
fd_bo_from_dmabuf
fd_bo_from_fbdev
fd_bo_from_handle
fd_bo_from_name
fd_bo_get_name
fd_bo_handle
fd_bo_map
fd_bo_new
fd_bo_ref
fd_bo_size
fd_device_del
28
fd_device_fd
Emil Velikov's avatar
Emil Velikov committed
29
30
31
fd_device_new
fd_device_new_dup
fd_device_ref
Rob Clark's avatar
Rob Clark committed
32
fd_device_version
Emil Velikov's avatar
Emil Velikov committed
33
34
35
fd_pipe_del
fd_pipe_get_param
fd_pipe_new
36
fd_pipe_new2
Emil Velikov's avatar
Emil Velikov committed
37
fd_pipe_wait
38
fd_pipe_wait_timeout
Rob Clark's avatar
Rob Clark committed
39
fd_ringbuffer_cmd_count
Emil Velikov's avatar
Emil Velikov committed
40
41
fd_ringbuffer_del
fd_ringbuffer_emit_reloc_ring
Rob Clark's avatar
Rob Clark committed
42
fd_ringbuffer_emit_reloc_ring_full
Emil Velikov's avatar
Emil Velikov committed
43
fd_ringbuffer_flush
Rob Clark's avatar
Rob Clark committed
44
fd_ringbuffer_grow
Emil Velikov's avatar
Emil Velikov committed
45
46
fd_ringbuffer_new
fd_ringbuffer_reloc
Rob Clark's avatar
Rob Clark committed
47
fd_ringbuffer_reloc2
Emil Velikov's avatar
Emil Velikov committed
48
49
50
51
52
53
fd_ringbuffer_reset
fd_ringbuffer_set_parent
fd_ringbuffer_timestamp
fd_ringmarker_del
fd_ringmarker_dwords
fd_ringmarker_flush
54
fd_ringbuffer_flush2
Emil Velikov's avatar
Emil Velikov committed
55
56
57
58
59
60
61
fd_ringmarker_mark
fd_ringmarker_new
EOF
done)

test ! -n "$FUNCS" || echo $FUNCS
test ! -n "$FUNCS"