1871ee96jb#!/usr/sbin/dtrace -s
2871ee96jb
3871ee96jb/*
4871ee96jb * CDDL HEADER START
5871ee96jb *
6871ee96jb * The contents of this file are subject to the terms of the
7871ee96jb * Common Development and Distribution License (the "License").
8871ee96jb * You may not use this file except in compliance with the License.
9871ee96jb *
10871ee96jb * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11871ee96jb * or http://www.opensolaris.org/os/licensing.
12871ee96jb * See the License for the specific language governing permissions
13871ee96jb * and limitations under the License.
14871ee96jb *
15871ee96jb * When distributing Covered Code, include this CDDL HEADER in each
16871ee96jb * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17871ee96jb * If applicable, add the following below this CDDL HEADER, with the
18871ee96jb * fields enclosed by brackets "[]" replaced with your own identifying
19871ee96jb * information: Portions Copyright [yyyy] [name of copyright owner]
20871ee96jb *
21871ee96jb * CDDL HEADER END
22871ee96jb */
23871ee96jb
24871ee96jb/*
25871ee96jb * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
26871ee96jb * Use is subject to license terms.
27871ee96jb */
28871ee96jb
29871ee96jb#pragma	ident	"%Z%%M%	%I%	%E% SMI"
30871ee96jb
31871ee96jb/*
32871ee96jb * ASSERTION:
33871ee96jb *   	Verifying doc example 21-1
34871ee96jb *
35871ee96jb * SECTION:
36871ee96jb *	DocExamples/userfunc
37871ee96jb *
38871ee96jb */
39871ee96jb
40871ee96jbpid$1::$2:entry
41871ee96jb{
42871ee96jb	self->trace = 1;
43871ee96jb}
44871ee96jb
45871ee96jbpid$1::$2:return
46871ee96jb/self->trace/
47871ee96jb{
48871ee96jb	self->trace = 0;
49871ee96jb}
50871ee96jb
51871ee96jbpid$1:::entry,
52871ee96jbpid$1:::return
53871ee96jb/self->trace/
54871ee96jb{
55871ee96jb}
56871ee96jb
57871ee96jb
58871ee96jb
59871ee96jb
60871ee96jb
61871ee96jb
62