xref: /illumos-gate/usr/src/lib/libdtrace/common/procfs.sed.in (revision 1da57d551424de5a9d469760be7c4b4d4f10a755)
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/*
28 * This file is a sed script which is first preprocessed by cpp or cc -E to
29 * define a set of sed directives which replace #define tokens with their
30 * values.  After preprocessing, the sed script is run over procfs.d.in to
31 * replace the #define tokens listed below to create the finished procfs.d.
32 * Refer to the rules in libdtrace/Makefile.com for more information.
33 */
34
35#include <sys/model.h>
36#include <sys/thread.h>
37#include <sys/proc.h>
38#include <sys/procfs.h>
39#include <sys/sobject.h>
40#include <sys/siginfo.h>
41
42#define	SED_REPLACE(x)	s/#x/x/g
43
44SED_REPLACE(DATAMODEL_ILP32)
45SED_REPLACE(DATAMODEL_LP64)
46
47SED_REPLACE(TP_DAEMON)
48SED_REPLACE(TP_TWAIT)
49SED_REPLACE(TP_PRVSTOP)
50SED_REPLACE(TS_PSTART)
51SED_REPLACE(TS_FREE)
52SED_REPLACE(TS_SLEEP)
53SED_REPLACE(TS_RUN)
54SED_REPLACE(TS_ONPROC)
55SED_REPLACE(TS_ZOMB)
56SED_REPLACE(TS_STOPPED)
57SED_REPLACE(TS_WAIT)
58
59SED_REPLACE(P_PR_FORK)
60SED_REPLACE(P_PR_RUNLCL)
61SED_REPLACE(P_PR_KILLCL)
62SED_REPLACE(P_PR_ASYNC)
63SED_REPLACE(P_PR_BPTADJ)
64SED_REPLACE(P_PR_PTRACE)
65
66SED_REPLACE(SSYS)
67SED_REPLACE(SMSACCT)
68SED_REPLACE(SMSFORK)
69SED_REPLACE(SVFWAIT)
70
71SED_REPLACE(SSLEEP)
72SED_REPLACE(SRUN)
73SED_REPLACE(SZOMB)
74SED_REPLACE(SSTOP)
75SED_REPLACE(SIDL)
76SED_REPLACE(SONPROC)
77SED_REPLACE(SWAIT)
78
79SED_REPLACE(CLDNOSIGCHLD)
80SED_REPLACE(CLDWAITPID)
81
82SED_REPLACE(PR_STOPPED)
83SED_REPLACE(PR_ISTOP)
84SED_REPLACE(PR_DSTOP)
85SED_REPLACE(PR_STEP)
86SED_REPLACE(PR_ASLEEP)
87SED_REPLACE(PR_PCINVAL)
88SED_REPLACE(PR_ASLWP)
89SED_REPLACE(PR_AGENT)
90SED_REPLACE(PR_DETACH)
91SED_REPLACE(PR_DAEMON)
92SED_REPLACE(PR_IDLE)
93SED_REPLACE(PR_ISSYS)
94SED_REPLACE(PR_VFORKP)
95SED_REPLACE(PR_ORPHAN)
96SED_REPLACE(PR_NOSIGCHLD)
97SED_REPLACE(PR_WAITPID)
98SED_REPLACE(PR_FORK)
99SED_REPLACE(PR_RLC)
100SED_REPLACE(PR_KLC)
101SED_REPLACE(PR_ASYNC)
102SED_REPLACE(PR_MSACCT)
103SED_REPLACE(PR_BPTADJ)
104SED_REPLACE(PR_PTRACE)
105SED_REPLACE(PR_MSFORK)
106
107SED_REPLACE(PR_MODEL_ILP32)
108SED_REPLACE(PR_MODEL_LP64)
109
110SED_REPLACE(SOBJ_NONE)
111SED_REPLACE(SOBJ_MUTEX)
112SED_REPLACE(SOBJ_RWLOCK)
113SED_REPLACE(SOBJ_CV)
114SED_REPLACE(SOBJ_SEMA)
115SED_REPLACE(SOBJ_USER)
116SED_REPLACE(SOBJ_USER_PI)
117SED_REPLACE(SOBJ_SHUTTLE)
118
119SED_REPLACE(SI_USER)
120SED_REPLACE(SI_LWP)
121SED_REPLACE(SI_QUEUE)
122SED_REPLACE(SI_TIMER)
123SED_REPLACE(SI_ASYNCIO)
124SED_REPLACE(SI_MESGQ)
125SED_REPLACE(SI_RCTL)
126SED_REPLACE(ILL_ILLOPC)
127SED_REPLACE(ILL_ILLOPN)
128SED_REPLACE(ILL_ILLOPN)
129SED_REPLACE(ILL_ILLADR)
130SED_REPLACE(ILL_ILLTRP)
131SED_REPLACE(ILL_PRVOPC)
132SED_REPLACE(ILL_PRVREG)
133SED_REPLACE(ILL_COPROC)
134SED_REPLACE(ILL_BADSTK)
135SED_REPLACE(FPE_INTDIV)
136SED_REPLACE(FPE_INTOVF)
137SED_REPLACE(FPE_FLTDIV)
138SED_REPLACE(FPE_FLTOVF)
139SED_REPLACE(FPE_FLTUND)
140SED_REPLACE(FPE_FLTRES)
141SED_REPLACE(FPE_FLTINV)
142SED_REPLACE(FPE_FLTSUB)
143SED_REPLACE(SEGV_MAPERR)
144SED_REPLACE(SEGV_ACCERR)
145SED_REPLACE(BUS_ADRALN)
146SED_REPLACE(BUS_ADRERR)
147SED_REPLACE(BUS_OBJERR)
148SED_REPLACE(TRAP_BRKPT)
149SED_REPLACE(TRAP_TRACE)
150SED_REPLACE(CLD_EXITED)
151SED_REPLACE(CLD_KILLED)
152SED_REPLACE(CLD_DUMPED)
153SED_REPLACE(CLD_TRAPPED)
154SED_REPLACE(CLD_STOPPED)
155SED_REPLACE(CLD_CONTINUED)
156SED_REPLACE(POLL_IN)
157SED_REPLACE(POLL_OUT)
158SED_REPLACE(POLL_MSG)
159SED_REPLACE(POLL_ERR)
160SED_REPLACE(POLL_PRI)
161SED_REPLACE(POLL_HUP)
162