Deleted Added
full compact
tst.mutex_owner.d (178529) tst.mutex_owner.d (178534)
1/*
2 * CDDL HEADER START
3 *
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.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 27 unchanged lines hidden (view full) ---

36 * NOTES: This assertion can't be verified so we'll just call it.
37 */
38
39
40
41
42#pragma D option quiet
43
1/*
2 * CDDL HEADER START
3 *
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.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 27 unchanged lines hidden (view full) ---

36 * NOTES: This assertion can't be verified so we'll just call it.
37 */
38
39
40
41
42#pragma D option quiet
43
44kthread_t *ptr;
44struct thread *ptr;
45
46BEGIN
47{
48 i = 0;
49}
50
45
46BEGIN
47{
48 i = 0;
49}
50
51lockstat:genunix:mutex_enter:adaptive-acquire
51lockstat::mtx_lock:adaptive-acquire
52{
53
52{
53
54 ptr = mutex_owner((kmutex_t *)arg0);
54 ptr = mutex_owner((struct mtx *)arg0);
55 i++;
56}
57
58tick-1
59/i > 5/
60{
61 exit(0);
62}
63
55 i++;
56}
57
58tick-1
59/i > 5/
60{
61 exit(0);
62}
63