trussrw.d revision 178477
1236884Smm/*
2236884Smm * CDDL HEADER START
3236884Smm *
4236884Smm * The contents of this file are subject to the terms of the
5236884Smm * Common Development and Distribution License (the "License").
6236884Smm * You may not use this file except in compliance with the License.
7236884Smm *
8236884Smm * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9236884Smm * or http://www.opensolaris.org/os/licensing.
10236884Smm * See the License for the specific language governing permissions
11236884Smm * and limitations under the License.
12236884Smm *
13236884Smm * When distributing Covered Code, include this CDDL HEADER in each
14236884Smm * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15236884Smm * If applicable, add the following below this CDDL HEADER, with the
16236884Smm * fields enclosed by brackets "[]" replaced with your own identifying
17236884Smm * information: Portions Copyright [yyyy] [name of copyright owner]
18236884Smm *
19236884Smm * CDDL HEADER END
20236884Smm */
21236884Smm
22236884Smm/*
23286708Smav * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24246586Sdelphij * Use is subject to license terms.
25255750Sdelphij */
26268126Sdelphij
27236884Smm#pragma ident	"%Z%%M%	%I%	%E% SMI"
28236884Smm
29236884Smm/*
30236884Smm * ASSERTION:
31236884Smm *	Verify doc example 1-2
32236884Smm *
33236884Smm * SECTION:
34236884Smm *	DocExamples/trussrw
35236884Smm */
36236884Smm
37236884Smm
38236884Smm#pragma D option quiet
39236884Smm
40236884Smmsyscall::read:entry,
41236884Smmsyscall::write:entry
42236884Smm/pid == 100551/
43236884Smm{
44236884Smm	printf("%s(%d, 0x%x, %4d)", probefunc, arg0, arg1, arg2);
45236884Smm}
46236884Smm
47236884Smmsyscall::read:return,
48236884Smmsyscall::write:return
49236884Smm/pid == 100551/
50236884Smm{
51236884Smm	printf("\t\t = %d\n", arg1);
52236884Smm}
53236884Smm