]> sourceware.org Git - systemtap.git/commit
PR17232 variant #2: in runtime, let STP_EXIT nest within STP_START
authorFrank Ch. Eigler <fche@redhat.com>
Sat, 9 Aug 2014 00:31:01 +0000 (20:31 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Sun, 10 Aug 2014 23:18:17 +0000 (19:18 -0400)
commitb6c60d31f5fa2742915b3f4b7d3d6f5ee6f329e6
treefc945e89b2557968dcdf37b281ae5045d0e75354
parent9108b75e1dcaf8f6b4aa3b961cfabeda4d1d1948
PR17232 variant #2: in runtime, let STP_EXIT nest within STP_START

Uncommitted variant #1 consisted of using module refcounts in the
generated systemtap_module_init/exit function pair to ensure that an
uncleaned module cannot be unloaded.  That precluded cleanup via
rmmod(8), so a robust but inconvenient solution.

This variant #2 consists of a surgical fix, wherein an STP_EXIT
message comes in during an STP_START is used to set an atomic flag for
deferred _stp_cleanup_and_exit() handling.

A variant #3 is coming soon, using a protocol-wide command-message
mutex, like we did back before commit #262f7598.
runtime/transport/control.c
runtime/transport/transport.c
This page took 0.028336 seconds and 5 git commands to generate.