]> sourceware.org Git - systemtap.git/commit
PR14706: Follow forks in stapdyn and enable process.begin
authorJosh Stone <jistone@redhat.com>
Fri, 18 Jan 2013 23:23:12 +0000 (15:23 -0800)
committerJosh Stone <jistone@redhat.com>
Fri, 18 Jan 2013 23:30:35 +0000 (15:30 -0800)
commit7210030458450ec2fd657deb84a9d1afa1f3a48a
tree04ef566cc0d182fb78e76b09421243a51256c6db
parent1925d293b3283304c697888197bddd53899f822d
PR14706: Follow forks in stapdyn and enable process.begin

* stapdyn/mutatee.cxx (mutatee::call_utrace_dynprobe): Newly abstracted
  function to call utrace handlers from various contexts.
  (mutatee::begin_callback): New, runs process.begin callbacks.
  (mutatee::exit_callback): Use call_utrace_dynprobe.
  (mutatee::thread_callback): Use call_utrace_dynprobe.
  (mutatee::copy_forked_instrumentation): New, set all the member
  variables for a newly-forked process.
* stapdyn/mutator.cxx (mutator::run): Trigger process.begin in target.
  (mutator::post_fork_callback): Create an attached mutatee for the
  fork, copy the instrumentation status, and trigger process.begin.
stapdyn/mutatee.cxx
stapdyn/mutatee.h
stapdyn/mutator.cxx
This page took 0.025911 seconds and 5 git commands to generate.