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