10Sstevel@tonic-gate/* 20Sstevel@tonic-gate * CDDL HEADER START 30Sstevel@tonic-gate * 40Sstevel@tonic-gate * The contents of this file are subject to the terms of the 53235Sraf * Common Development and Distribution License (the "License"). 63235Sraf * You may not use this file except in compliance with the License. 70Sstevel@tonic-gate * 80Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate * See the License for the specific language governing permissions 110Sstevel@tonic-gate * and limitations under the License. 120Sstevel@tonic-gate * 130Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate * 190Sstevel@tonic-gate * CDDL HEADER END 200Sstevel@tonic-gate */ 213235Sraf 220Sstevel@tonic-gate/* 233235Sraf * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 240Sstevel@tonic-gate * Use is subject to license terms. 250Sstevel@tonic-gate */ 260Sstevel@tonic-gate 270Sstevel@tonic-gate#pragma ident "%Z%%M% %I% %E% SMI" 280Sstevel@tonic-gate 290Sstevel@tonic-gate/* 300Sstevel@tonic-gate * This file is a sed script which is first preprocessed by cpp or cc -E to 310Sstevel@tonic-gate * define a set of sed directives which replace #define tokens with their 320Sstevel@tonic-gate * values. After preprocessing, the sed script is run over procfs.d.in to 330Sstevel@tonic-gate * replace the #define tokens listed below to create the finished procfs.d. 340Sstevel@tonic-gate * Refer to the rules in libdtrace/Makefile.com for more information. 350Sstevel@tonic-gate */ 360Sstevel@tonic-gate 370Sstevel@tonic-gate#include <sys/model.h> 380Sstevel@tonic-gate#include <sys/thread.h> 390Sstevel@tonic-gate#include <sys/proc.h> 400Sstevel@tonic-gate#include <sys/procfs.h> 410Sstevel@tonic-gate#include <sys/sobject.h> 420Sstevel@tonic-gate#include <sys/siginfo.h> 430Sstevel@tonic-gate 440Sstevel@tonic-gate#define SED_REPLACE(x) s/#x/x/g 450Sstevel@tonic-gate 460Sstevel@tonic-gateSED_REPLACE(DATAMODEL_ILP32) 470Sstevel@tonic-gateSED_REPLACE(DATAMODEL_LP64) 480Sstevel@tonic-gate 490Sstevel@tonic-gateSED_REPLACE(TP_DAEMON) 500Sstevel@tonic-gateSED_REPLACE(TP_TWAIT) 510Sstevel@tonic-gateSED_REPLACE(TP_PRVSTOP) 520Sstevel@tonic-gateSED_REPLACE(TS_PSTART) 530Sstevel@tonic-gateSED_REPLACE(TS_FREE) 540Sstevel@tonic-gateSED_REPLACE(TS_SLEEP) 550Sstevel@tonic-gateSED_REPLACE(TS_RUN) 560Sstevel@tonic-gateSED_REPLACE(TS_ONPROC) 570Sstevel@tonic-gateSED_REPLACE(TS_ZOMB) 580Sstevel@tonic-gateSED_REPLACE(TS_STOPPED) 59*3792SakolbSED_REPLACE(TS_WAIT) 600Sstevel@tonic-gate 610Sstevel@tonic-gateSED_REPLACE(P_PR_FORK) 620Sstevel@tonic-gateSED_REPLACE(P_PR_RUNLCL) 630Sstevel@tonic-gateSED_REPLACE(P_PR_KILLCL) 640Sstevel@tonic-gateSED_REPLACE(P_PR_ASYNC) 650Sstevel@tonic-gateSED_REPLACE(P_PR_BPTADJ) 660Sstevel@tonic-gateSED_REPLACE(P_PR_PTRACE) 670Sstevel@tonic-gate 680Sstevel@tonic-gateSED_REPLACE(SSYS) 690Sstevel@tonic-gateSED_REPLACE(SMSACCT) 700Sstevel@tonic-gateSED_REPLACE(SMSFORK) 710Sstevel@tonic-gateSED_REPLACE(SVFWAIT) 720Sstevel@tonic-gate 730Sstevel@tonic-gateSED_REPLACE(SSLEEP) 740Sstevel@tonic-gateSED_REPLACE(SRUN) 750Sstevel@tonic-gateSED_REPLACE(SZOMB) 760Sstevel@tonic-gateSED_REPLACE(SSTOP) 770Sstevel@tonic-gateSED_REPLACE(SIDL) 780Sstevel@tonic-gateSED_REPLACE(SONPROC) 79*3792SakolbSED_REPLACE(SWAIT) 800Sstevel@tonic-gate 813235SrafSED_REPLACE(CLDNOSIGCHLD) 823235SrafSED_REPLACE(CLDWAITPID) 833235Sraf 840Sstevel@tonic-gateSED_REPLACE(PR_STOPPED) 850Sstevel@tonic-gateSED_REPLACE(PR_ISTOP) 860Sstevel@tonic-gateSED_REPLACE(PR_DSTOP) 870Sstevel@tonic-gateSED_REPLACE(PR_STEP) 880Sstevel@tonic-gateSED_REPLACE(PR_ASLEEP) 890Sstevel@tonic-gateSED_REPLACE(PR_PCINVAL) 900Sstevel@tonic-gateSED_REPLACE(PR_ASLWP) 910Sstevel@tonic-gateSED_REPLACE(PR_AGENT) 920Sstevel@tonic-gateSED_REPLACE(PR_DETACH) 930Sstevel@tonic-gateSED_REPLACE(PR_DAEMON) 943235SrafSED_REPLACE(PR_IDLE) 950Sstevel@tonic-gateSED_REPLACE(PR_ISSYS) 960Sstevel@tonic-gateSED_REPLACE(PR_VFORKP) 970Sstevel@tonic-gateSED_REPLACE(PR_ORPHAN) 983235SrafSED_REPLACE(PR_NOSIGCHLD) 993235SrafSED_REPLACE(PR_WAITPID) 1000Sstevel@tonic-gateSED_REPLACE(PR_FORK) 1010Sstevel@tonic-gateSED_REPLACE(PR_RLC) 1020Sstevel@tonic-gateSED_REPLACE(PR_KLC) 1030Sstevel@tonic-gateSED_REPLACE(PR_ASYNC) 1040Sstevel@tonic-gateSED_REPLACE(PR_MSACCT) 1050Sstevel@tonic-gateSED_REPLACE(PR_BPTADJ) 1060Sstevel@tonic-gateSED_REPLACE(PR_PTRACE) 1070Sstevel@tonic-gateSED_REPLACE(PR_MSFORK) 1080Sstevel@tonic-gate 1090Sstevel@tonic-gateSED_REPLACE(PR_MODEL_ILP32) 1100Sstevel@tonic-gateSED_REPLACE(PR_MODEL_LP64) 1110Sstevel@tonic-gate 1120Sstevel@tonic-gateSED_REPLACE(SOBJ_NONE) 1130Sstevel@tonic-gateSED_REPLACE(SOBJ_MUTEX) 1140Sstevel@tonic-gateSED_REPLACE(SOBJ_RWLOCK) 1150Sstevel@tonic-gateSED_REPLACE(SOBJ_CV) 1160Sstevel@tonic-gateSED_REPLACE(SOBJ_SEMA) 1170Sstevel@tonic-gateSED_REPLACE(SOBJ_USER) 1180Sstevel@tonic-gateSED_REPLACE(SOBJ_USER_PI) 1190Sstevel@tonic-gateSED_REPLACE(SOBJ_SHUTTLE) 1200Sstevel@tonic-gate 1210Sstevel@tonic-gateSED_REPLACE(SI_USER) 1220Sstevel@tonic-gateSED_REPLACE(SI_LWP) 1230Sstevel@tonic-gateSED_REPLACE(SI_QUEUE) 1240Sstevel@tonic-gateSED_REPLACE(SI_TIMER) 1250Sstevel@tonic-gateSED_REPLACE(SI_ASYNCIO) 1260Sstevel@tonic-gateSED_REPLACE(SI_MESGQ) 1270Sstevel@tonic-gateSED_REPLACE(SI_RCTL) 1280Sstevel@tonic-gateSED_REPLACE(ILL_ILLOPC) 1290Sstevel@tonic-gateSED_REPLACE(ILL_ILLOPN) 1300Sstevel@tonic-gateSED_REPLACE(ILL_ILLOPN) 1310Sstevel@tonic-gateSED_REPLACE(ILL_ILLADR) 1320Sstevel@tonic-gateSED_REPLACE(ILL_ILLTRP) 1330Sstevel@tonic-gateSED_REPLACE(ILL_PRVOPC) 1340Sstevel@tonic-gateSED_REPLACE(ILL_PRVREG) 1350Sstevel@tonic-gateSED_REPLACE(ILL_COPROC) 1360Sstevel@tonic-gateSED_REPLACE(ILL_BADSTK) 1370Sstevel@tonic-gateSED_REPLACE(FPE_INTDIV) 1380Sstevel@tonic-gateSED_REPLACE(FPE_INTOVF) 1390Sstevel@tonic-gateSED_REPLACE(FPE_FLTDIV) 1400Sstevel@tonic-gateSED_REPLACE(FPE_FLTOVF) 1410Sstevel@tonic-gateSED_REPLACE(FPE_FLTUND) 1420Sstevel@tonic-gateSED_REPLACE(FPE_FLTRES) 1430Sstevel@tonic-gateSED_REPLACE(FPE_FLTINV) 1440Sstevel@tonic-gateSED_REPLACE(FPE_FLTSUB) 1450Sstevel@tonic-gateSED_REPLACE(SEGV_MAPERR) 1460Sstevel@tonic-gateSED_REPLACE(SEGV_ACCERR) 1470Sstevel@tonic-gateSED_REPLACE(BUS_ADRALN) 1480Sstevel@tonic-gateSED_REPLACE(BUS_ADRERR) 1490Sstevel@tonic-gateSED_REPLACE(BUS_OBJERR) 1500Sstevel@tonic-gateSED_REPLACE(TRAP_BRKPT) 1510Sstevel@tonic-gateSED_REPLACE(TRAP_TRACE) 1520Sstevel@tonic-gateSED_REPLACE(CLD_EXITED) 1530Sstevel@tonic-gateSED_REPLACE(CLD_KILLED) 1540Sstevel@tonic-gateSED_REPLACE(CLD_DUMPED) 1550Sstevel@tonic-gateSED_REPLACE(CLD_TRAPPED) 1560Sstevel@tonic-gateSED_REPLACE(CLD_STOPPED) 1570Sstevel@tonic-gateSED_REPLACE(CLD_CONTINUED) 1580Sstevel@tonic-gateSED_REPLACE(POLL_IN) 1590Sstevel@tonic-gateSED_REPLACE(POLL_OUT) 1600Sstevel@tonic-gateSED_REPLACE(POLL_MSG) 1610Sstevel@tonic-gateSED_REPLACE(POLL_ERR) 1620Sstevel@tonic-gateSED_REPLACE(POLL_PRI) 1630Sstevel@tonic-gateSED_REPLACE(POLL_HUP) 164