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]
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
41 #
pragma D option strsize
=16
42 #
pragma D option bufsize
=10K
43 #
pragma D option bufpolicy
=ring
46 /(self
->done
== 0) && (curthread
->t_cpu
->cpu_intr_actv
== 0) /
49 printf(" %u 0x%llX %d %d comm:%s csathr:%lld", timestamp
,
50 (long long)curthread
, pid
, tid
,
51 execname
, (long long)stackdepth
);
56 /(self
->done
== 0) && (curthread
->t_cpu
->cpu_intr_actv
== 0) /
59 printf(" %u 0x%llX %d %d comm:%s csathr:%lld", timestamp
,
60 (long long) curthread
, pid
, tid
,
61 execname
, (long long) stackdepth
);
67 printf(" %u 0x%llX %d %d ", timestamp
,
68 (long long)curthread
, pid
, tid
);
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
);