4.1155-freebsd-126-freebsd-12freebsd-9.3
Line | |
---|
1 | #! /bin/sh |
---|
2 | # |
---|
3 | # This file generates the symbol table for the kvm subsystem. The |
---|
4 | # table is limited to the ones we believe are needed. |
---|
5 | |
---|
6 | symbols="" |
---|
7 | while read sym |
---|
8 | do |
---|
9 | symbols="${symbols} ${sym}" |
---|
10 | done <<EOF |
---|
11 | _ifnet |
---|
12 | _rtstat |
---|
13 | _rt_tables |
---|
14 | _mrtstat |
---|
15 | _mfchashtbl |
---|
16 | _viftable |
---|
17 | _ipxpcb_list |
---|
18 | _ipxstat |
---|
19 | _spx_istat |
---|
20 | _ddpstat |
---|
21 | _ddpcb |
---|
22 | _ngsocklist |
---|
23 | _ip6stat |
---|
24 | _icmp6stat |
---|
25 | _ipsec4stat |
---|
26 | _ipsec6stat |
---|
27 | _pim6stat |
---|
28 | _mrt6stat |
---|
29 | _mf6ctable |
---|
30 | _mif6table |
---|
31 | _pfkeystat |
---|
32 | _mbstat |
---|
33 | _mbtypes |
---|
34 | _nmbclusters |
---|
35 | _nmbufs |
---|
36 | _mbuf_hiwm |
---|
37 | _clust_hiwm |
---|
38 | _smp_cpus |
---|
39 | _pagesize |
---|
40 | _mb_statpcpu |
---|
41 | _rttrash |
---|
42 | _mbuf_lowm |
---|
43 | _clust_lowm |
---|
44 | _carpstats |
---|
45 | _pfsyncstats |
---|
46 | _ahstat |
---|
47 | _espstat |
---|
48 | _ipcompstat |
---|
49 | _tcpstat |
---|
50 | _udpstat |
---|
51 | _ipstat |
---|
52 | _icmpstat |
---|
53 | _igmpstat |
---|
54 | _pimstat |
---|
55 | _tcbinfo |
---|
56 | _udbinfo |
---|
57 | _divcbinfo |
---|
58 | _ripcbinfo |
---|
59 | _unp_count |
---|
60 | _unp_gencnt |
---|
61 | _unp_dhead |
---|
62 | _unp_shead |
---|
63 | _rip6stat |
---|
64 | _sctpstat |
---|
65 | _mfctablesize |
---|
66 | _arpstat |
---|
67 | EOF |
---|
68 | |
---|
69 | cat <<EOF |
---|
70 | /**** THIS FILE IS GENERATED BY A SCRIPT ****/ |
---|
71 | |
---|
72 | /* |
---|
73 | * This file contains the known list of symbols for the kvm subsystem. |
---|
74 | */ |
---|
75 | |
---|
76 | #include "kvm_private.h" |
---|
77 | #include "stdio.h" |
---|
78 | |
---|
79 | /* |
---|
80 | * The following is the known list of symbols that may be passed |
---|
81 | * to the kvm family of calls. |
---|
82 | */ |
---|
83 | |
---|
84 | EOF |
---|
85 | for sym in ${symbols} |
---|
86 | do |
---|
87 | no_underscore=`echo $sym | sed -e 's/^_//' ` |
---|
88 | echo "extern int ${no_underscore} __attribute((weak));" |
---|
89 | done |
---|
90 | |
---|
91 | cat <<EOF |
---|
92 | /* |
---|
93 | * The following is the known list of symbols that may be passed |
---|
94 | * to the kvm family of calls. |
---|
95 | */ |
---|
96 | |
---|
97 | kvm_symval_t rtems_kvm_symbols[] = { |
---|
98 | EOF |
---|
99 | for sym in ${symbols} |
---|
100 | do |
---|
101 | no_underscore=`echo $sym | sed -e 's/^_//' ` |
---|
102 | echo " { \"${sym}\", (uintptr_t) &${no_underscore} }," |
---|
103 | done |
---|
104 | |
---|
105 | cat <<EOF |
---|
106 | { "", (uintptr_t) NULL } |
---|
107 | }; |
---|
108 | EOF |
---|
Note: See
TracBrowser
for help on using the repository browser.