xref: /titanic_41/usr/src/lib/libdtrace/common/procfs.sed.in (revision c5024742c2f7d10880eae26cc592353b20a58f4a)
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, Version 1.0 only
6 * (the "License").  You may not use this file except in compliance
7 * with the License.
8 *
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
13 *
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22/*
23 * Copyright 2003 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
46SED_REPLACE(DATAMODEL_ILP32)
47SED_REPLACE(DATAMODEL_LP64)
48
49SED_REPLACE(TP_DAEMON)
50SED_REPLACE(TP_TWAIT)
51SED_REPLACE(TP_PRVSTOP)
52SED_REPLACE(TS_PSTART)
53SED_REPLACE(TS_FREE)
54SED_REPLACE(TS_SLEEP)
55SED_REPLACE(TS_RUN)
56SED_REPLACE(TS_ONPROC)
57SED_REPLACE(TS_ZOMB)
58SED_REPLACE(TS_STOPPED)
59
60SED_REPLACE(P_PR_FORK)
61SED_REPLACE(P_PR_RUNLCL)
62SED_REPLACE(P_PR_KILLCL)
63SED_REPLACE(P_PR_ASYNC)
64SED_REPLACE(P_PR_BPTADJ)
65SED_REPLACE(P_PR_PTRACE)
66
67SED_REPLACE(SSYS)
68SED_REPLACE(SMSACCT)
69SED_REPLACE(SMSFORK)
70SED_REPLACE(SVFWAIT)
71
72SED_REPLACE(SSLEEP)
73SED_REPLACE(SRUN)
74SED_REPLACE(SZOMB)
75SED_REPLACE(SSTOP)
76SED_REPLACE(SIDL)
77SED_REPLACE(SONPROC)
78
79SED_REPLACE(PR_STOPPED)
80SED_REPLACE(PR_ISTOP)
81SED_REPLACE(PR_DSTOP)
82SED_REPLACE(PR_STEP)
83SED_REPLACE(PR_ASLEEP)
84SED_REPLACE(PR_PCINVAL)
85SED_REPLACE(PR_ASLWP)
86SED_REPLACE(PR_AGENT)
87SED_REPLACE(PR_DETACH)
88SED_REPLACE(PR_DAEMON)
89SED_REPLACE(PR_ISSYS)
90SED_REPLACE(PR_VFORKP)
91SED_REPLACE(PR_ORPHAN)
92SED_REPLACE(PR_FORK)
93SED_REPLACE(PR_RLC)
94SED_REPLACE(PR_KLC)
95SED_REPLACE(PR_ASYNC)
96SED_REPLACE(PR_MSACCT)
97SED_REPLACE(PR_BPTADJ)
98SED_REPLACE(PR_PTRACE)
99SED_REPLACE(PR_MSFORK)
100SED_REPLACE(PR_IDLE)
101
102SED_REPLACE(PR_MODEL_ILP32)
103SED_REPLACE(PR_MODEL_LP64)
104
105SED_REPLACE(SOBJ_NONE)
106SED_REPLACE(SOBJ_MUTEX)
107SED_REPLACE(SOBJ_RWLOCK)
108SED_REPLACE(SOBJ_CV)
109SED_REPLACE(SOBJ_SEMA)
110SED_REPLACE(SOBJ_USER)
111SED_REPLACE(SOBJ_USER_PI)
112SED_REPLACE(SOBJ_SHUTTLE)
113
114SED_REPLACE(SI_USER)
115SED_REPLACE(SI_LWP)
116SED_REPLACE(SI_QUEUE)
117SED_REPLACE(SI_TIMER)
118SED_REPLACE(SI_ASYNCIO)
119SED_REPLACE(SI_MESGQ)
120SED_REPLACE(SI_RCTL)
121SED_REPLACE(ILL_ILLOPC)
122SED_REPLACE(ILL_ILLOPN)
123SED_REPLACE(ILL_ILLOPN)
124SED_REPLACE(ILL_ILLADR)
125SED_REPLACE(ILL_ILLTRP)
126SED_REPLACE(ILL_PRVOPC)
127SED_REPLACE(ILL_PRVREG)
128SED_REPLACE(ILL_COPROC)
129SED_REPLACE(ILL_BADSTK)
130SED_REPLACE(FPE_INTDIV)
131SED_REPLACE(FPE_INTOVF)
132SED_REPLACE(FPE_FLTDIV)
133SED_REPLACE(FPE_FLTOVF)
134SED_REPLACE(FPE_FLTUND)
135SED_REPLACE(FPE_FLTRES)
136SED_REPLACE(FPE_FLTINV)
137SED_REPLACE(FPE_FLTSUB)
138SED_REPLACE(SEGV_MAPERR)
139SED_REPLACE(SEGV_ACCERR)
140SED_REPLACE(BUS_ADRALN)
141SED_REPLACE(BUS_ADRERR)
142SED_REPLACE(BUS_OBJERR)
143SED_REPLACE(TRAP_BRKPT)
144SED_REPLACE(TRAP_TRACE)
145SED_REPLACE(CLD_EXITED)
146SED_REPLACE(CLD_KILLED)
147SED_REPLACE(CLD_DUMPED)
148SED_REPLACE(CLD_TRAPPED)
149SED_REPLACE(CLD_STOPPED)
150SED_REPLACE(CLD_CONTINUED)
151SED_REPLACE(POLL_IN)
152SED_REPLACE(POLL_OUT)
153SED_REPLACE(POLL_MSG)
154SED_REPLACE(POLL_ERR)
155SED_REPLACE(POLL_PRI)
156SED_REPLACE(POLL_HUP)
157