55-freebsd-126-freebsd-12
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 | _ahstat |
---|
12 | _arpstat |
---|
13 | _carpstats |
---|
14 | _clust_hiwm |
---|
15 | _clust_lowm |
---|
16 | _ddpcb |
---|
17 | _ddpstat |
---|
18 | _divcbinfo |
---|
19 | _espstat |
---|
20 | _icmp6stat |
---|
21 | _icmpstat |
---|
22 | _ifnet |
---|
23 | _igmpstat |
---|
24 | _ip6stat |
---|
25 | _ipcompstat |
---|
26 | _ipsec4stat |
---|
27 | _ipsec6stat |
---|
28 | _ipstat |
---|
29 | _ipxpcb_list |
---|
30 | _ipxstat |
---|
31 | _mbstat |
---|
32 | _mb_statpcpu |
---|
33 | _mbtypes |
---|
34 | _mbuf_hiwm |
---|
35 | _mbuf_lowm |
---|
36 | _mf6ctable |
---|
37 | _mfchashtbl |
---|
38 | _mfctablesize |
---|
39 | _mif6table |
---|
40 | _mrt6stat |
---|
41 | _mrtstat |
---|
42 | _netisr_bindthreads |
---|
43 | _netisr_defaultqlimit |
---|
44 | _netisr_dispatch_policy |
---|
45 | _netisr_maxprot |
---|
46 | _netisr_maxqlimit |
---|
47 | _netisr_maxthreads |
---|
48 | _netisr_proto |
---|
49 | _ngsocklist |
---|
50 | _nmbclusters |
---|
51 | _nmbufs |
---|
52 | _nws |
---|
53 | _nws_array |
---|
54 | _nws_count |
---|
55 | _pagesize |
---|
56 | _pfkeystat |
---|
57 | _pfsyncstats |
---|
58 | _pim6stat |
---|
59 | _pimstat |
---|
60 | _rip6stat |
---|
61 | _ripcbinfo |
---|
62 | _rtree |
---|
63 | _rtstat |
---|
64 | _rt_tables |
---|
65 | _rttrash |
---|
66 | _sctpstat |
---|
67 | _sfstat |
---|
68 | _smp_cpus |
---|
69 | _spx_istat |
---|
70 | _tcbinfo |
---|
71 | _tcps_states |
---|
72 | _tcpstat |
---|
73 | _udbinfo |
---|
74 | _udpstat |
---|
75 | _unp_count |
---|
76 | _unp_dhead |
---|
77 | _unp_gencnt |
---|
78 | _unp_shead |
---|
79 | _unp_sphead |
---|
80 | _viftable |
---|
81 | EOF |
---|
82 | |
---|
83 | cat <<EOF |
---|
84 | /**** THIS FILE IS GENERATED BY A SCRIPT ****/ |
---|
85 | |
---|
86 | /* |
---|
87 | * This file contains the known list of symbols for the kvm subsystem. |
---|
88 | */ |
---|
89 | |
---|
90 | #include <machine/rtems-bsd-kernel-space.h> |
---|
91 | |
---|
92 | #include "kvm_private.h" |
---|
93 | |
---|
94 | /* |
---|
95 | * The following is the known list of symbols that may be passed |
---|
96 | * to the kvm family of calls. |
---|
97 | */ |
---|
98 | |
---|
99 | EOF |
---|
100 | for sym in ${symbols} |
---|
101 | do |
---|
102 | echo "extern int _bsd${sym} __attribute((weak));" |
---|
103 | done |
---|
104 | |
---|
105 | cat <<EOF |
---|
106 | /* |
---|
107 | * The following is the known list of symbols that may be passed |
---|
108 | * to the kvm family of calls. |
---|
109 | */ |
---|
110 | |
---|
111 | const kvm_symval_t rtems_kvm_symbols[] = { |
---|
112 | EOF |
---|
113 | for sym in ${symbols} |
---|
114 | do |
---|
115 | echo " { \"${sym}\", (uintptr_t) &_bsd${sym} }," |
---|
116 | done |
---|
117 | |
---|
118 | cat <<EOF |
---|
119 | { "", 0 } |
---|
120 | }; |
---|
121 | EOF |
---|
Note: See
TracBrowser
for help on using the repository browser.