tst.embedded.d revision 2633:71bab08d24b2
196923Sgrog/*
296923Sgrog * CDDL HEADER START
396923Sgrog *
496923Sgrog * The contents of this file are subject to the terms of the
596923Sgrog * Common Development and Distribution License (the "License").
696923Sgrog * You may not use this file except in compliance with the License.
796923Sgrog *
896923Sgrog * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
996923Sgrog * or http://www.opensolaris.org/os/licensing.
1096923Sgrog * See the License for the specific language governing permissions
1196923Sgrog * and limitations under the License.
1296923Sgrog *
1396923Sgrog * When distributing Covered Code, include this CDDL HEADER in each
1496923Sgrog * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1596923Sgrog * If applicable, add the following below this CDDL HEADER, with the
1696923Sgrog * fields enclosed by brackets "[]" replaced with your own identifying
1796923Sgrog * information: Portions Copyright [yyyy] [name of copyright owner]
1896923Sgrog *
1996923Sgrog * CDDL HEADER END
2096923Sgrog */
2196923Sgrog
2296923Sgrog/*
2396923Sgrog * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
2496923Sgrog * Use is subject to license terms.
2596923Sgrog */
2696923Sgrog
2796923Sgrog#pragma ident	"%Z%%M%	%I%	%E% SMI"
2896923Sgrog
2996923Sgrog/*
3096923Sgrog * ASSERTION:
3196923Sgrog *
3296923Sgrog * SECTION:
3396923Sgrog *
3496923Sgrog * NOTES:
3596923Sgrog *
3696923Sgrog */
3796920Sgrog
3896920Sgrog#pragma D option destructive
3996920Sgrog
4096920Sgrogpid$1:a.out:waiting:entry
4196920Sgrog{
4296920Sgrog	this->a = (char *)alloca(1);
4396920Sgrog	*this->a = 1;
4496920Sgrog	copyout(this->a, arg0, 1);
4596920Sgrog}
4696920Sgrog
4796920Sgrogpid$1:a.out:main:,
4896920Sgrogpid$1:a.out:inner:
4996920Sgrog{
5096920Sgrog}
5196920Sgrog
5296920Sgrogsyscall::rexit:entry
5396920Sgrog/pid == $1/
5496920Sgrog{
5596920Sgrog	exit(0);
5696920Sgrog}
5796920Sgrog
5896920Sgrog
5996920SgrogBEGIN
6096920Sgrog{
6196920Sgrog	/*
6296920Sgrog	 * Let's just do this for 5 seconds.
6396920Sgrog	 */
6496920Sgrog	timeout = timestamp + 5000000000;
6596920Sgrog}
6696920Sgrog
6796920Sgrogprofile:::tick-4
6896920Sgrog/timestamp > timeout/
6996920Sgrog{
7096920Sgrog	trace("test timed out");
7196920Sgrog	exit(1);
7296920Sgrog}
7396920Sgrog
7496920Sgrog