tst.execname.d revision 2870:a343ed00e23c
1128080Semax/*
2128080Semax * CDDL HEADER START
3128080Semax *
4162128Semax * The contents of this file are subject to the terms of the
5162128Semax * Common Development and Distribution License (the "License").
6162128Semax * You may not use this file except in compliance with the License.
7162128Semax *
8128080Semax * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9128080Semax * or http://www.opensolaris.org/os/licensing.
10128080Semax * See the License for the specific language governing permissions
11128080Semax * and limitations under the License.
12128080Semax *
13128080Semax * When distributing Covered Code, include this CDDL HEADER in each
14128080Semax * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15128080Semax * If applicable, add the following below this CDDL HEADER, with the
16128080Semax * fields enclosed by brackets "[]" replaced with your own identifying
17128080Semax * information: Portions Copyright [yyyy] [name of copyright owner]
18128080Semax *
19128080Semax * CDDL HEADER END
20128080Semax */
21128080Semax
22128080Semax/*
23128080Semax * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24128080Semax * Use is subject to license terms.
25128080Semax */
26128080Semax
27128080Semax#pragma ident	"%Z%%M%	%I%	%E% SMI"
28128080Semax
29128080Semax/*
30128080Semax * ASSERTION:
31162128Semax * 	collect execname at every fbt probe and at every firing of a
32128080Semax *	high-frequency profile probe
33128080Semax */
34128080Semax
35128080Semaxfbt:::
36128080Semax{
37162128Semax	@a[execname] = count();
38162128Semax}
39128080Semax
40128080Semaxprofile-4999hz
41128080Semax{
42235789Sbapt	@a[execname] = count();
43128080Semax}
44128080Semax
45137868Semaxtick-1sec
46128080Semax/n++ == 10/
47128080Semax{
48128080Semax	exit(0);
49128080Semax}
50128080Semax