1 | /*
|
---|
2 | * CDDL HEADER START
|
---|
3 | *
|
---|
4 | * The contents of this file are subject to the terms of the
|
---|
5 | * Common Development and Distribution License (the "License").
|
---|
6 | * You may not use this file except in compliance with the License.
|
---|
7 | *
|
---|
8 | * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
|
---|
9 | * or http://www.opensolaris.org/os/licensing.
|
---|
10 | * See the License for the specific language governing permissions
|
---|
11 | * and limitations under the License.
|
---|
12 | *
|
---|
13 | * When distributing Covered Code, include this CDDL HEADER in each
|
---|
14 | * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
|
---|
15 | * If applicable, add the following below this CDDL HEADER, with the
|
---|
16 | * fields enclosed by brackets "[]" replaced with your own identifying
|
---|
17 | * information: Portions Copyright [yyyy] [name of copyright owner]
|
---|
18 | *
|
---|
19 | * CDDL HEADER END
|
---|
20 | */
|
---|
21 |
|
---|
22 | /*
|
---|
23 | * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
|
---|
24 | * Use is subject to license terms.
|
---|
25 | */
|
---|
26 |
|
---|
27 | #pragma ident "%Z%%M% %I% %E% SMI"
|
---|
28 |
|
---|
29 | /*
|
---|
30 | * This file is a sed script which is first preprocessed by cpp or cc -E to
|
---|
31 | * define a set of sed directives which replace #define tokens with their
|
---|
32 | * values. After preprocessing, the sed script is run over procfs.d.in to
|
---|
33 | * replace the #define tokens listed below to create the finished procfs.d.
|
---|
34 | * Refer to the rules in libdtrace/Makefile.com for more information.
|
---|
35 | */
|
---|
36 |
|
---|
37 | #include <sys/model.h>
|
---|
38 | #include <sys/thread.h>
|
---|
39 | #include <sys/proc.h>
|
---|
40 | #include <sys/procfs.h>
|
---|
41 | #include <sys/sobject.h>
|
---|
42 | #include <sys/siginfo.h>
|
---|
43 |
|
---|
44 | #define SED_REPLACE(x) s/#x/x/g
|
---|
45 |
|
---|
46 | SED_REPLACE(DATAMODEL_ILP32)
|
---|
47 | SED_REPLACE(DATAMODEL_LP64)
|
---|
48 |
|
---|
49 | SED_REPLACE(TP_DAEMON)
|
---|
50 | SED_REPLACE(TP_TWAIT)
|
---|
51 | SED_REPLACE(TP_PRVSTOP)
|
---|
52 | SED_REPLACE(TS_PSTART)
|
---|
53 | SED_REPLACE(TS_FREE)
|
---|
54 | SED_REPLACE(TS_SLEEP)
|
---|
55 | SED_REPLACE(TS_RUN)
|
---|
56 | SED_REPLACE(TS_ONPROC)
|
---|
57 | SED_REPLACE(TS_ZOMB)
|
---|
58 | SED_REPLACE(TS_STOPPED)
|
---|
59 | SED_REPLACE(TS_WAIT)
|
---|
60 |
|
---|
61 | SED_REPLACE(P_PR_FORK)
|
---|
62 | SED_REPLACE(P_PR_RUNLCL)
|
---|
63 | SED_REPLACE(P_PR_KILLCL)
|
---|
64 | SED_REPLACE(P_PR_ASYNC)
|
---|
65 | SED_REPLACE(P_PR_BPTADJ)
|
---|
66 | SED_REPLACE(P_PR_PTRACE)
|
---|
67 |
|
---|
68 | SED_REPLACE(SSYS)
|
---|
69 | SED_REPLACE(SMSACCT)
|
---|
70 | SED_REPLACE(SMSFORK)
|
---|
71 | SED_REPLACE(SVFWAIT)
|
---|
72 |
|
---|
73 | SED_REPLACE(SSLEEP)
|
---|
74 | SED_REPLACE(SRUN)
|
---|
75 | SED_REPLACE(SZOMB)
|
---|
76 | SED_REPLACE(SSTOP)
|
---|
77 | SED_REPLACE(SIDL)
|
---|
78 | SED_REPLACE(SONPROC)
|
---|
79 | SED_REPLACE(SWAIT)
|
---|
80 |
|
---|
81 | SED_REPLACE(CLDNOSIGCHLD)
|
---|
82 | SED_REPLACE(CLDWAITPID)
|
---|
83 |
|
---|
84 | SED_REPLACE(PR_STOPPED)
|
---|
85 | SED_REPLACE(PR_ISTOP)
|
---|
86 | SED_REPLACE(PR_DSTOP)
|
---|
87 | SED_REPLACE(PR_STEP)
|
---|
88 | SED_REPLACE(PR_ASLEEP)
|
---|
89 | SED_REPLACE(PR_PCINVAL)
|
---|
90 | SED_REPLACE(PR_ASLWP)
|
---|
91 | SED_REPLACE(PR_AGENT)
|
---|
92 | SED_REPLACE(PR_DETACH)
|
---|
93 | SED_REPLACE(PR_DAEMON)
|
---|
94 | SED_REPLACE(PR_IDLE)
|
---|
95 | SED_REPLACE(PR_ISSYS)
|
---|
96 | SED_REPLACE(PR_VFORKP)
|
---|
97 | SED_REPLACE(PR_ORPHAN)
|
---|
98 | SED_REPLACE(PR_NOSIGCHLD)
|
---|
99 | SED_REPLACE(PR_WAITPID)
|
---|
100 | SED_REPLACE(PR_FORK)
|
---|
101 | SED_REPLACE(PR_RLC)
|
---|
102 | SED_REPLACE(PR_KLC)
|
---|
103 | SED_REPLACE(PR_ASYNC)
|
---|
104 | SED_REPLACE(PR_MSACCT)
|
---|
105 | SED_REPLACE(PR_BPTADJ)
|
---|
106 | SED_REPLACE(PR_PTRACE)
|
---|
107 | SED_REPLACE(PR_MSFORK)
|
---|
108 |
|
---|
109 | SED_REPLACE(PR_MODEL_ILP32)
|
---|
110 | SED_REPLACE(PR_MODEL_LP64)
|
---|
111 |
|
---|
112 | SED_REPLACE(SOBJ_NONE)
|
---|
113 | SED_REPLACE(SOBJ_MUTEX)
|
---|
114 | SED_REPLACE(SOBJ_RWLOCK)
|
---|
115 | SED_REPLACE(SOBJ_CV)
|
---|
116 | SED_REPLACE(SOBJ_SEMA)
|
---|
117 | SED_REPLACE(SOBJ_USER)
|
---|
118 | SED_REPLACE(SOBJ_USER_PI)
|
---|
119 | SED_REPLACE(SOBJ_SHUTTLE)
|
---|
120 |
|
---|
121 | SED_REPLACE(SI_USER)
|
---|
122 | SED_REPLACE(SI_LWP)
|
---|
123 | SED_REPLACE(SI_QUEUE)
|
---|
124 | SED_REPLACE(SI_TIMER)
|
---|
125 | SED_REPLACE(SI_ASYNCIO)
|
---|
126 | SED_REPLACE(SI_MESGQ)
|
---|
127 | SED_REPLACE(SI_RCTL)
|
---|
128 | SED_REPLACE(ILL_ILLOPC)
|
---|
129 | SED_REPLACE(ILL_ILLOPN)
|
---|
130 | SED_REPLACE(ILL_ILLOPN)
|
---|
131 | SED_REPLACE(ILL_ILLADR)
|
---|
132 | SED_REPLACE(ILL_ILLTRP)
|
---|
133 | SED_REPLACE(ILL_PRVOPC)
|
---|
134 | SED_REPLACE(ILL_PRVREG)
|
---|
135 | SED_REPLACE(ILL_COPROC)
|
---|
136 | SED_REPLACE(ILL_BADSTK)
|
---|
137 | SED_REPLACE(FPE_INTDIV)
|
---|
138 | SED_REPLACE(FPE_INTOVF)
|
---|
139 | SED_REPLACE(FPE_FLTDIV)
|
---|
140 | SED_REPLACE(FPE_FLTOVF)
|
---|
141 | SED_REPLACE(FPE_FLTUND)
|
---|
142 | SED_REPLACE(FPE_FLTRES)
|
---|
143 | SED_REPLACE(FPE_FLTINV)
|
---|
144 | SED_REPLACE(FPE_FLTSUB)
|
---|
145 | SED_REPLACE(SEGV_MAPERR)
|
---|
146 | SED_REPLACE(SEGV_ACCERR)
|
---|
147 | SED_REPLACE(BUS_ADRALN)
|
---|
148 | SED_REPLACE(BUS_ADRERR)
|
---|
149 | SED_REPLACE(BUS_OBJERR)
|
---|
150 | SED_REPLACE(TRAP_BRKPT)
|
---|
151 | SED_REPLACE(TRAP_TRACE)
|
---|
152 | SED_REPLACE(CLD_EXITED)
|
---|
153 | SED_REPLACE(CLD_KILLED)
|
---|
154 | SED_REPLACE(CLD_DUMPED)
|
---|
155 | SED_REPLACE(CLD_TRAPPED)
|
---|
156 | SED_REPLACE(CLD_STOPPED)
|
---|
157 | SED_REPLACE(CLD_CONTINUED)
|
---|
158 | SED_REPLACE(POLL_IN)
|
---|
159 | SED_REPLACE(POLL_OUT)
|
---|
160 | SED_REPLACE(POLL_MSG)
|
---|
161 | SED_REPLACE(POLL_ERR)
|
---|
162 | SED_REPLACE(POLL_PRI)
|
---|
163 | SED_REPLACE(POLL_HUP)
|
---|