OSDN Git Service

nouveau: add symbols test
[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_new
37 nouveau_pushbuf_bufctx
38 nouveau_pushbuf_data
39 nouveau_pushbuf_del
40 nouveau_pushbuf_kick
41 nouveau_pushbuf_new
42 nouveau_pushbuf_refd
43 nouveau_pushbuf_refn
44 nouveau_pushbuf_reloc
45 nouveau_pushbuf_space
46 nouveau_pushbuf_validate
47 nouveau_setparam
48 EOF
49 done)
50
51 test ! -n "$FUNCS" || echo $FUNCS
52 test ! -n "$FUNCS"