tst.DTRACEFLT_UNKNOWN.d revision 256281
197403Sobrien/*
297403Sobrien * CDDL HEADER START
397403Sobrien *
497403Sobrien * The contents of this file are subject to the terms of the
597403Sobrien * Common Development and Distribution License (the "License").
697403Sobrien * You may not use this file except in compliance with the License.
797403Sobrien *
897403Sobrien * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
997403Sobrien * or http://www.opensolaris.org/os/licensing.
1097403Sobrien * See the License for the specific language governing permissions
1197403Sobrien * and limitations under the License.
1297403Sobrien *
1397403Sobrien * When distributing Covered Code, include this CDDL HEADER in each
1497403Sobrien * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1597403Sobrien * If applicable, add the following below this CDDL HEADER, with the
1697403Sobrien * fields enclosed by brackets "[]" replaced with your own identifying
1797403Sobrien * information: Portions Copyright [yyyy] [name of copyright owner]
18169691Skan *
1997403Sobrien * CDDL HEADER END
2097403Sobrien */
2197403Sobrien
2297403Sobrien/*
2397403Sobrien * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
2497403Sobrien * Use is subject to license terms.
2597403Sobrien */
2697403Sobrien
2797403Sobrien#pragma	ident	"%Z%%M%	%I%	%E% SMI"
2897403Sobrien
2997403Sobrien/*
3097403Sobrien * ASSERTION:
3197403Sobrien *	To test DTRACEFLT_UNKNOWN error
3297403Sobrien *
3397403Sobrien * SECTION: dtrace Provider
3497403Sobrien *
3597403Sobrien */
3697403Sobrien
3797403Sobrien
3897403Sobrien#pragma D option quiet
3997403Sobrien
4097403SobrienERROR
4197403Sobrien{
4297403Sobrien	printf("The arguments are %u %u %u %u %u\n",
4397403Sobrien		arg1, arg2, arg3, arg4, arg5);
4497403Sobrien	printf("The value of arg4 = %u\n", DTRACEFLT_UNKNOWN);
4597403Sobrien	exit(0);
4697403Sobrien}
4797403Sobrien
4897403SobrienBEGIN
4997403Sobrien{
5097403Sobrien	x = (int *) 64;
5197403Sobrien	y = *x;
5297403Sobrien	trace(y);
5397403Sobrien}
5497403Sobrien