xref: /freebsd-src/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/scalars/tst.16klocal.d (revision 27067774dce3388702a4cf744d7096c6fb71b688)
1*b7125fa9SMark Johnston /*
2*b7125fa9SMark Johnston  * This file and its contents are supplied under the terms of the
3*b7125fa9SMark Johnston  * Common Development and Distribution License ("CDDL"), version 1.0.
4*b7125fa9SMark Johnston  * You may only use this file in accordance with the terms of version
5*b7125fa9SMark Johnston  * 1.0 of the CDDL.
6*b7125fa9SMark Johnston  *
7*b7125fa9SMark Johnston  * A full copy of the text of the CDDL should have accompanied this
8*b7125fa9SMark Johnston  * source.  A copy of the CDDL is also available via the Internet at
9*b7125fa9SMark Johnston  * http://www.illumos.org/license/CDDL.
10*b7125fa9SMark Johnston  */
11*b7125fa9SMark Johnston 
12*b7125fa9SMark Johnston /*
13*b7125fa9SMark Johnston  * Copyright (c) 2016, Joyent, Inc. All rights reserved.
14*b7125fa9SMark Johnston  */
15*b7125fa9SMark Johnston 
16*b7125fa9SMark Johnston #pragma D option strsize=16k
17*b7125fa9SMark Johnston 
18*b7125fa9SMark Johnston BEGIN
19*b7125fa9SMark Johnston {
20*b7125fa9SMark Johnston 	this->j = probeprov;
21*b7125fa9SMark Johnston 	this->j[0] = 'D';
22*b7125fa9SMark Johnston 	this->j[1] = 'T';
23*b7125fa9SMark Johnston }
24*b7125fa9SMark Johnston 
25*b7125fa9SMark Johnston BEGIN
26*b7125fa9SMark Johnston {
27*b7125fa9SMark Johnston 	trace(this->j);
28*b7125fa9SMark Johnston 	exit(this->j == "DTrace" ? 0 : 1);
29*b7125fa9SMark Johnston }
30