xref: /onnv-gate/usr/src/cmd/dtrace/test/tst/sparc/ustack/tst.circstack.d (revision 4926:0c0bcae7290e)
13682Sjhaslam /*
23682Sjhaslam  * CDDL HEADER START
33682Sjhaslam  *
43682Sjhaslam  * The contents of this file are subject to the terms of the
53682Sjhaslam  * Common Development and Distribution License (the "License").
63682Sjhaslam  * You may not use this file except in compliance with the License.
73682Sjhaslam  *
83682Sjhaslam  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
93682Sjhaslam  * or http://www.opensolaris.org/os/licensing.
103682Sjhaslam  * See the License for the specific language governing permissions
113682Sjhaslam  * and limitations under the License.
123682Sjhaslam  *
133682Sjhaslam  * When distributing Covered Code, include this CDDL HEADER in each
143682Sjhaslam  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
153682Sjhaslam  * If applicable, add the following below this CDDL HEADER, with the
163682Sjhaslam  * fields enclosed by brackets "[]" replaced with your own identifying
173682Sjhaslam  * information: Portions Copyright [yyyy] [name of copyright owner]
183682Sjhaslam  *
193682Sjhaslam  * CDDL HEADER END
203682Sjhaslam  */
213682Sjhaslam 
223682Sjhaslam /*
233682Sjhaslam  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
243682Sjhaslam  * Use is subject to license terms.
253682Sjhaslam  */
263682Sjhaslam 
273682Sjhaslam #pragma ident	"%Z%%M%	%I%	%E% SMI"
283682Sjhaslam 
293682Sjhaslam syscall::getpid:entry
303682Sjhaslam /pid == $1/
313682Sjhaslam {
32*4926Sjhaslam 	@[ustackdepth] = count();
333682Sjhaslam }
343682Sjhaslam 
353682Sjhaslam ERROR
363682Sjhaslam /arg4 == DTRACEFLT_BADSTACK/
373682Sjhaslam {
38*4926Sjhaslam 	exit(0);
393682Sjhaslam }
403682Sjhaslam 
413682Sjhaslam profile:::tick-1s
423682Sjhaslam /++n  == 10/
433682Sjhaslam {
44*4926Sjhaslam 	exit(1)
453682Sjhaslam }
463682Sjhaslam 
47