Roland,

Occasionally, I see:

attached to 1717 => 0xde089000
utrace_control: -EINPROGRESS
pid 1717 reports quiesced to 0xde089000
BUG: sleeping function called from invalid context at kernel/sched.c:5428
in_atomic():0, irqs_disabled():1
no locks held by uttest/1717.
irq event stamp: 1396
hardirqs last  enabled at (1395): [<c0438309>] trace_hardirqs_on+0xb/0xd
hardirqs last disabled at (1396): [<c04d2648>] trace_hardirqs_off_thunk+0xc/0x10
softirqs last  enabled at (994): [<c0420091>] __do_softirq+0x97/0x9e
softirqs last disabled at (987): [<c04056c5>] do_softirq+0x59/0xa8
Pid: 1717, comm: uttest Not tainted 2.6.27-rc3 #1
 [<c04178dd>] __might_sleep+0xb3/0xb8
 [<c041891f>] __cond_resched+0x12/0x3e
 [<c05dbee8>] _cond_resched+0x27/0x32
 [<c04437ef>] finish_callback+0x37/0xb4
 [<c04438b0>] start_callback+0x44/0x85
 [<c0444587>] utrace_resume+0xa8/0x106
 [<c0403315>] do_notify_resume+0x630/0x654
 [<c04375db>] ? trace_hardirqs_off+0xb/0xd
 [<c043755d>] ? trace_hardirqs_off_caller+0x14/0x87
 [<c04375db>] ? trace_hardirqs_off+0xb/0xd
 [<c040736a>] ? native_sched_clock+0x71/0x83
 [<c0436fd8>] ? lock_release_holdtime+0x2b/0x12e
 [<c04a392d>] ? dnotify_parent+0x5c/0x61
 [<c0473288>] ? fsnotify_access+0x54/0x5f
 [<c04fc958>] ? tty_read+0x0/0xa9
 [<c0473f4f>] ? vfs_read+0xa6/0xdf
 [<c0403ab6>] work_notifysig+0x13/0x19
 =======================
pid 1717 reports quiesced to 0xde089000
autodetach 0xde089000 for 1717 (by 1717)
cannot find PID 1717

The utrace module is a rehased version of test-quiesce.c from the ntrace
tarball to work with the new interfaces. The report_quiesce handler just
returns UTRACE_RESUME.

This is on an x86_32 machine with the latest utrace git and the config
has CONFIG_SMP=n and CONFIG_PREEMPT_VOLUNTARY=y.

Ananth

Reply via email to