aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Velikov2015-03-31 13:47:24 -0500
committerEmil Velikov2015-04-28 05:19:15 -0500
commit47429af325b6c32904c0b7e68e6ce3ff0d57aec0 (patch)
treeb4c400a8562b4a6cc880f5490f34c113ea441c86 /nouveau
parent76e9799b8a465bc3545823ed283a6c3a049c7524 (diff)
downloadexternal-libgbm-47429af325b6c32904c0b7e68e6ce3ff0d57aec0.tar.gz
external-libgbm-47429af325b6c32904c0b7e68e6ce3ff0d57aec0.tar.xz
external-libgbm-47429af325b6c32904c0b7e68e6ce3ff0d57aec0.zip
nouveau: add symbols test
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'nouveau')
-rw-r--r--nouveau/Makefile.am3
-rwxr-xr-xnouveau/nouveau-symbol-check52
2 files changed, 54 insertions, 1 deletions
diff --git a/nouveau/Makefile.am b/nouveau/Makefile.am
index 1ca235d2..2f613517 100644
--- a/nouveau/Makefile.am
+++ b/nouveau/Makefile.am
@@ -21,4 +21,5 @@ libdrm_nouveauinclude_HEADERS = $(LIBDRM_NOUVEAU_H_FILES)
21pkgconfigdir = @pkgconfigdir@ 21pkgconfigdir = @pkgconfigdir@
22pkgconfig_DATA = libdrm_nouveau.pc 22pkgconfig_DATA = libdrm_nouveau.pc
23 23
24EXTRA_DIST = Android.mk 24TESTS = nouveau-symbol-check
25EXTRA_DIST = Android.mk $(TESTS)
diff --git a/nouveau/nouveau-symbol-check b/nouveau/nouveau-symbol-check
new file mode 100755
index 00000000..0fef5632
--- /dev/null
+++ b/nouveau/nouveau-symbol-check
@@ -0,0 +1,52 @@
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
6FUNCS=$(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
13nouveau_bo_map
14nouveau_bo_name_get
15nouveau_bo_name_ref
16nouveau_bo_new
17nouveau_bo_prime_handle_ref
18nouveau_bo_ref
19nouveau_bo_set_prime
20nouveau_bo_wait
21nouveau_bo_wrap
22nouveau_bufctx_del
23nouveau_bufctx_mthd
24nouveau_bufctx_new
25nouveau_bufctx_refn
26nouveau_bufctx_reset
27nouveau_client_del
28nouveau_client_new
29nouveau_device_del
30nouveau_device_open
31nouveau_device_open_existing
32nouveau_device_wrap
33nouveau_getparam
34nouveau_object_del
35nouveau_object_find
36nouveau_object_new
37nouveau_pushbuf_bufctx
38nouveau_pushbuf_data
39nouveau_pushbuf_del
40nouveau_pushbuf_kick
41nouveau_pushbuf_new
42nouveau_pushbuf_refd
43nouveau_pushbuf_refn
44nouveau_pushbuf_reloc
45nouveau_pushbuf_space
46nouveau_pushbuf_validate
47nouveau_setparam
48EOF
49done)
50
51test ! -n "$FUNCS" || echo $FUNCS
52test ! -n "$FUNCS"