]> sourceware.org Git - systemtap.git/commit
stapdyn: Enable end/error probes
authorJosh Stone <jistone@redhat.com>
Mon, 24 Sep 2012 23:15:55 +0000 (16:15 -0700)
committerJosh Stone <jistone@redhat.com>
Mon, 24 Sep 2012 23:15:55 +0000 (16:15 -0700)
commit6109115cda35fe9ced82dcd638f8e73008b757f5
tree403c66b4633378d90148624bc14f48c17ff5f0e6
parentf4d8069ddf3a60224256acbbe105a534b7349ffd
stapdyn: Enable end/error probes

The dyninst exit hook runs too late for us to still call anything in the
mutatee, so the systemtap_module_exit() call which should run all of the
end/error probes wasn't happening.

Now we use a destructor function in the mutatee, so our exit path always
runs after main() returns or after an exit() call.  Functions like
_exit() are still problematic though.

This now also makes a distinction between initializing process-local vs.
session resources, so we are more ready for operating with multiple
mutatees at once.  See dyninst/runtime.h for design comments.
runtime/dyninst/runtime.h
stapdyn/stapdyn.cxx
This page took 0.028804 seconds and 5 git commands to generate.