8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / dtrace / test / tst / common / misc / tst.roch.d
blob67f4462234624a683fc5fb575d1cbd735a5a62e5
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
19 * CDDL HEADER END
23 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 #pragma ident "%Z%%M% %I% %E% SMI"
30 * ASSERTION: test for assertion failure in the ring buffer code
32 * SECTION: Buffers and Buffering/ring Policy; Misc
35 #pragma ident "@(#)tst.roch.d 1.2 03/08/11 SMI"
38 * A script from Roch Bourbonnais that induced an assertion failure in the
39 * ring buffer code.
41 #pragma D option strsize=16
42 #pragma D option bufsize=10K
43 #pragma D option bufpolicy=ring
45 fbt:::entry
46 /(self->done == 0) && (curthread->t_cpu->cpu_intr_actv == 0) /
48 self->done = 1;
49 printf(" %u 0x%llX %d %d comm:%s csathr:%lld", timestamp,
50 (long long)curthread, pid, tid,
51 execname, (long long)stackdepth);
52 stack(20);
55 fbt:::return
56 /(self->done == 0) && (curthread->t_cpu->cpu_intr_actv == 0) /
58 self->done = 1;
59 printf(" %u 0x%llX %d %d comm:%s csathr:%lld", timestamp,
60 (long long) curthread, pid, tid,
61 execname, (long long) stackdepth);
62 stack(20);
65 fbt:::entry
67 printf(" %u 0x%llX %d %d ", timestamp,
68 (long long)curthread, pid, tid);
71 fbt:::return
73 printf(" %u 0x%llX %d %d tag:%d off:%d ", timestamp,
74 (long long)curthread, pid, tid, (int)arg1, (int)arg0);
77 mutex_enter:adaptive-acquire
79 printf(" %u 0x%llX %d %d lock:0x%llX", timestamp,
80 (long long)curthread, pid, tid, arg0);
83 mutex_exit:adaptive-release
85 printf(" %u 0x%llX %d %d lock:0x%llX", timestamp,
86 (long long) curthread, pid, tid, arg0);
89 tick-1sec
90 /n++ == 10/
92 exit(0);