tst.bigstack.d revision 14ea49401f3c8c61422aefbda43809e275f60c6c
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * CDDL HEADER START
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * The contents of this file are subject to the terms of the
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Common Development and Distribution License (the "License").
45e9809aff7304721fddb95654901b32195c9c7avboxsync * You may not use this file except in compliance with the License.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
45e9809aff7304721fddb95654901b32195c9c7avboxsync * or http://www.opensolaris.org/os/licensing.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * See the License for the specific language governing permissions
45e9809aff7304721fddb95654901b32195c9c7avboxsync * and limitations under the License.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * When distributing Covered Code, include this CDDL HEADER in each
45e9809aff7304721fddb95654901b32195c9c7avboxsync * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * If applicable, add the following below this CDDL HEADER, with the
45e9809aff7304721fddb95654901b32195c9c7avboxsync * fields enclosed by brackets "[]" replaced with your own identifying
45e9809aff7304721fddb95654901b32195c9c7avboxsync * information: Portions Copyright [yyyy] [name of copyright owner]
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * CDDL HEADER END
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Use is subject to license terms.
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#pragma ident "%Z%%M% %I% %E% SMI"
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncsyscall::getpid:entry
45e9809aff7304721fddb95654901b32195c9c7avboxsync/pid == $1/
45e9809aff7304721fddb95654901b32195c9c7avboxsync{
45e9809aff7304721fddb95654901b32195c9c7avboxsync @[ustackdepth] = count();
45e9809aff7304721fddb95654901b32195c9c7avboxsync}
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncERROR
45e9809aff7304721fddb95654901b32195c9c7avboxsync/arg4 == DTRACEFLT_BADSTACK/
45e9809aff7304721fddb95654901b32195c9c7avboxsync{
45e9809aff7304721fddb95654901b32195c9c7avboxsync exit(0);
45e9809aff7304721fddb95654901b32195c9c7avboxsync}
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncprofile:::tick-1s
45e9809aff7304721fddb95654901b32195c9c7avboxsync/++n == 10/
45e9809aff7304721fddb95654901b32195c9c7avboxsync{
45e9809aff7304721fddb95654901b32195c9c7avboxsync exit(1)
}