blob: 73301702cd87cb36e6bedf78f3c46828a1253605 [file] [log] [blame]
Emil Velikov47429af2015-03-31 19:47:24 +01001#!/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
Ben Skeggsc00e1a92015-11-24 09:58:39 +100036nouveau_object_mthd
Emil Velikov47429af2015-03-31 19:47:24 +010037nouveau_object_new
38nouveau_pushbuf_bufctx
39nouveau_pushbuf_data
40nouveau_pushbuf_del
41nouveau_pushbuf_kick
42nouveau_pushbuf_new
43nouveau_pushbuf_refd
44nouveau_pushbuf_refn
45nouveau_pushbuf_reloc
46nouveau_pushbuf_space
47nouveau_pushbuf_validate
48nouveau_setparam
49EOF
50done)
51
52test ! -n "$FUNCS" || echo $FUNCS
53test ! -n "$FUNCS"