1210753Srpaulo/*
2210753Srpaulo * CDDL HEADER START
3210753Srpaulo *
4210753Srpaulo * The contents of this file are subject to the terms of the
5210753Srpaulo * Common Development and Distribution License (the "License").
6210753Srpaulo * You may not use this file except in compliance with the License.
7210753Srpaulo *
8210753Srpaulo * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9210753Srpaulo * or http://www.opensolaris.org/os/licensing.
10210753Srpaulo * See the License for the specific language governing permissions
11210753Srpaulo * and limitations under the License.
12210753Srpaulo *
13210753Srpaulo * When distributing Covered Code, include this CDDL HEADER in each
14210753Srpaulo * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15210753Srpaulo * If applicable, add the following below this CDDL HEADER, with the
16210753Srpaulo * fields enclosed by brackets "[]" replaced with your own identifying
17210753Srpaulo * information: Portions Copyright [yyyy] [name of copyright owner]
18210753Srpaulo *
19210753Srpaulo * CDDL HEADER END
20210753Srpaulo */
21210753Srpaulo
22210753Srpaulo/*
23210753Srpaulo * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
24210753Srpaulo * Use is subject to license terms.
25210753Srpaulo */
26210753Srpaulo
27210753Srpaulo#pragma ident	"%Z%%M%	%I%	%E% SMI"
28210753Srpaulo
29210753Srpaulo/*
30210753Srpaulo * ASSERTION: Verify that argN (1..7) variables are properly remapped.
31210753Srpaulo */
32210753Srpaulo
33210753SrpauloBEGIN
34210753Srpaulo{
35210753Srpaulo	/* Timeout after 5 seconds */
36210753Srpaulo	timeout = timestamp + 5000000000;
37210753Srpaulo	ignore = $1;
38210753Srpaulo}
39210753Srpaulo
40210753SrpauloERROR
41210753Srpaulo{
42210753Srpaulo	printf("sdt:::test failed.\n");
43210753Srpaulo	exit(1);
44210753Srpaulo}
45210753Srpaulo
46251237Smarkjtest:::sdttest
47210753Srpaulo/arg0 != 1 || arg1 != 2 || arg2 != 3 || arg3 != 4 || arg4 != 5 || arg5 != 6 ||
48210753Srpaulo    arg6 != 7/
49210753Srpaulo{
50210753Srpaulo	printf("sdt arg mismatch\n\n");
51210753Srpaulo	printf("args are  : %d, %d, %d, %d, %d, %d, %d\n", arg0, arg1, arg2,
52210753Srpaulo	    arg3, arg4, arg5, arg6);
53210753Srpaulo	printf("should be : 1, 2, 3, 4, 5, 6, 7\n");
54210753Srpaulo	exit(1);
55210753Srpaulo}
56210753Srpaulo
57251237Smarkjtest:::sdttest
58210753Srpaulo{
59210753Srpaulo	exit(0);
60210753Srpaulo}
61210753Srpaulo
62210753Srpauloprofile:::tick-1
63210753Srpaulo/timestamp > timeout/
64210753Srpaulo{
65210753Srpaulo	trace("test timed out");
66210753Srpaulo	exit(1);
67210753Srpaulo}
68