]> sourceware.org Git - systemtap.git/commit
Reintroduce timer for transport cmd channel, don't wake_up unconditionally.
authorMark Wielaard <mjw@redhat.com>
Tue, 16 Aug 2011 12:31:29 +0000 (14:31 +0200)
committerMark Wielaard <mjw@redhat.com>
Tue, 16 Aug 2011 13:04:28 +0000 (15:04 +0200)
commitfc67febc6733e5803e6883a3757abda6268a953a
treeb980c52505f0cf026902da8db352c898f4da1fce
parentebc08b50d71622148c9e472a3876972e3a5a59e3
Reintroduce timer for transport cmd channel, don't wake_up unconditionally.

Revert parts of commit a85c8a "runtime/io.c: Explicitly signal setting of
_stp_exit_flag" and commit 46ac9e "Remove _stp_ctl_work_timer from module
transport layer". Introduce a new test wake_up.exp that shows a deadlock
when sending cmd messages and waking up the reader immediately.

Renamed _stp_ctl_write to _stp_ctl_send, which can be called from
everywhere. Rename _stp_ctl_send to _stp_ctl_send_notify that can be
called from user context in the transport layer itself (this will
immediately notify any readers). Document all places that use
_stp_ctl_send_notify directly to clarify why that is safe.

See http://sourceware.org/ml/systemtap/2011-q3/msg00163.html
runtime/io.c
runtime/print_flush.c
runtime/transport/control.c
runtime/transport/control.h
runtime/transport/transport.c
runtime/transport/transport.h
testsuite/systemtap.base/wakeup.exp [new file with mode: 0644]
testsuite/systemtap.base/wakeup.stp [new file with mode: 0644]
This page took 0.027874 seconds and 5 git commands to generate.