1122394Sharti/*
2122394Sharti * CDDL HEADER START
3122394Sharti *
4122394Sharti * The contents of this file are subject to the terms of the
5122394Sharti * Common Development and Distribution License (the "License").
6122394Sharti * You may not use this file except in compliance with the License.
7133211Sharti *
8133211Sharti * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9133211Sharti * or http://www.opensolaris.org/os/licensing.
10133211Sharti * See the License for the specific language governing permissions
11133211Sharti * and limitations under the License.
12133211Sharti *
13122394Sharti * When distributing Covered Code, include this CDDL HEADER in each
14122394Sharti * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15122394Sharti * If applicable, add the following below this CDDL HEADER, with the
16133211Sharti * fields enclosed by brackets "[]" replaced with your own identifying
17133211Sharti * information: Portions Copyright [yyyy] [name of copyright owner]
18133211Sharti *
19133211Sharti * CDDL HEADER END
20133211Sharti */
21133211Sharti
22133211Sharti/*
23133211Sharti * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24133211Sharti * Use is subject to license terms.
25133211Sharti */
26133211Sharti
27133211Sharti#pragma ident	"%Z%%M%	%I%	%E% SMI"
28122394Sharti
29156066Sharti/*
30122394Sharti * ASSERTION:
31122394Sharti *    Test that the stackdepth variable is safe to use at every fbt probe
32122394Sharti *    point.
33122394Sharti *
34122394Sharti * SECTION: Variables/Built-in Variables;
35122394Sharti *	Options and Tunables/bufsize;
36122394Sharti * 	Options and Tunables/bufpolicy;
37122394Sharti * 	Options and Tunables/statusrate
38122394Sharti */
39122394Sharti
40122394Sharti#pragma D option bufsize=1000
41122394Sharti#pragma D option bufpolicy=ring
42122394Sharti#pragma D option statusrate=10ms
43122394Sharti
44122394Shartifbt:::
45122394Sharti{
46122394Sharti	trace(stackdepth);
47122394Sharti}
48122394Sharti
49122394Shartitick-1sec
50122394Sharti/n++ == 10/
51122394Sharti{
52122394Sharti	exit(0);
53122394Sharti}
54122394Sharti