OSDN Git Service

73301702cd87cb36e6bedf78f3c46828a1253605
[android-x86/external-libdrm.git] / nouveau / nouveau-symbol-check
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_NOUVEAU_H_FILES
5
6 FUNCS=$(nm -D --format=bsd --defined-only ${1-.libs/libdrm_nouveau.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 nouveau_bo_map
14 nouveau_bo_name_get
15 nouveau_bo_name_ref
16 nouveau_bo_new
17 nouveau_bo_prime_handle_ref
18 nouveau_bo_ref
19 nouveau_bo_set_prime
20 nouveau_bo_wait
21 nouveau_bo_wrap
22 nouveau_bufctx_del
23 nouveau_bufctx_mthd
24 nouveau_bufctx_new
25 nouveau_bufctx_refn
26 nouveau_bufctx_reset
27 nouveau_client_del
28 nouveau_client_new
29 nouveau_device_del
30 nouveau_device_open
31 nouveau_device_open_existing
32 nouveau_device_wrap
33 nouveau_getparam
34 nouveau_object_del
35 nouveau_object_find
36 nouveau_object_mthd
37 nouveau_object_new
38 nouveau_pushbuf_bufctx
39 nouveau_pushbuf_data
40 nouveau_pushbuf_del
41 nouveau_pushbuf_kick
42 nouveau_pushbuf_new
43 nouveau_pushbuf_refd
44 nouveau_pushbuf_refn
45 nouveau_pushbuf_reloc
46 nouveau_pushbuf_space
47 nouveau_pushbuf_validate
48 nouveau_setparam
49 EOF
50 done)
51
52 test ! -n "$FUNCS" || echo $FUNCS
53 test ! -n "$FUNCS"