xref: /onnv-gate/usr/src/cmd/dtrace/test/tst/common/safety/tst.pid.d (revision 2870:a343ed00e23c)
1*2870Sdp /*
2*2870Sdp  * CDDL HEADER START
3*2870Sdp  *
4*2870Sdp  * The contents of this file are subject to the terms of the
5*2870Sdp  * Common Development and Distribution License (the "License").
6*2870Sdp  * You may not use this file except in compliance with the License.
7*2870Sdp  *
8*2870Sdp  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*2870Sdp  * or http://www.opensolaris.org/os/licensing.
10*2870Sdp  * See the License for the specific language governing permissions
11*2870Sdp  * and limitations under the License.
12*2870Sdp  *
13*2870Sdp  * When distributing Covered Code, include this CDDL HEADER in each
14*2870Sdp  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*2870Sdp  * If applicable, add the following below this CDDL HEADER, with the
16*2870Sdp  * fields enclosed by brackets "[]" replaced with your own identifying
17*2870Sdp  * information: Portions Copyright [yyyy] [name of copyright owner]
18*2870Sdp  *
19*2870Sdp  * CDDL HEADER END
20*2870Sdp  */
21*2870Sdp 
22*2870Sdp /*
23*2870Sdp  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24*2870Sdp  * Use is subject to license terms.
25*2870Sdp  */
26*2870Sdp 
27*2870Sdp #pragma ident	"%Z%%M%	%I%	%E% SMI"
28*2870Sdp 
29*2870Sdp /*
30*2870Sdp  * ASSERTION:
31*2870Sdp  * 	collect pid at every fbt probe and at every firing of a
32*2870Sdp  *	high-frequency profile probe
33*2870Sdp  */
34*2870Sdp 
35*2870Sdp fbt:::
36*2870Sdp {
37*2870Sdp 	@a[pid] = count();
38*2870Sdp }
39*2870Sdp 
40*2870Sdp profile-4999hz
41*2870Sdp {
42*2870Sdp 	@a[pid] = count();
43*2870Sdp }
44*2870Sdp 
45*2870Sdp tick-1sec
46*2870Sdp /n++ == 10/
47*2870Sdp {
48*2870Sdp 	exit(0);
49*2870Sdp }
50