source: rtems-libbsd/rtemsbsd/rtems/generate_kvm_symbols @ 028bf82

55-freebsd-126-freebsd-12
Last change on this file since 028bf82 was c40e45b, checked in by Sebastian Huber <sebastian.huber@…>, on 10/07/16 at 13:10:20

Update to FreeBSD head 2016-08-23

Git mirror commit 9fe7c416e6abb28b1398fd3e5687099846800cfd.

  • Property mode set to 100755
File size: 1.6 KB
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
6symbols=""
7while read sym
8do
9  symbols="${symbols} ${sym}"
10done <<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
81EOF
82
83cat <<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
99EOF
100for sym in ${symbols}
101do
102  echo "extern int _bsd${sym} __attribute((weak));"
103done
104
105cat <<EOF
106/*
107 *  The following is the known list of symbols that may be passed
108 *  to the kvm family of calls.
109 */
110
111const kvm_symval_t rtems_kvm_symbols[] = {
112EOF
113for sym in ${symbols}
114do
115  echo "  { \"${sym}\", (uintptr_t) &_bsd${sym} },"
116done
117
118cat <<EOF
119  { "", 0 }
120};
121EOF
Note: See TracBrowser for help on using the repository browser.