]> sourceware.org Git - systemtap.git/commit
stapdyn: Add some support for removing instrumentation
authorJosh Stone <jistone@redhat.com>
Tue, 30 Oct 2012 02:06:30 +0000 (19:06 -0700)
committerJosh Stone <jistone@redhat.com>
Tue, 30 Oct 2012 02:06:30 +0000 (19:06 -0700)
commitf46c7408ce9bc3e8d46e0a4c9c4945ee92d8be3d
tree0f172eeb1cf7ce35c1d1b53c4d3cb6de1c1322a6
parent848dec37389aa9fd17fcfb856bc94d59770e241f
stapdyn: Add some support for removing instrumentation

We'll need this for signal-handling cleanup, and for detaching from
-x PID target processes.

* stapdyn/mutatee.h (mutatee::snippets): New vector for all the handles
  to code that we've added with Dyninst insertSnippet.
* stapdyn/mutatee.cxx (mutatee::instrument_dynprobe_target): Save the
  insertSnippet handle in snippets.
  (mutatee::remove_instrumentation): New, remove all the snippets.
  (mutatee::unload_stap_dso): New placeholder for unloading our module
  from the target process.  Dyninst can't do this yet...
  (mutatee::~mutatee): Call remove_instrumentation and unload_stap_dso.
stapdyn/mutatee.cxx
stapdyn/mutatee.h
This page took 0.027558 seconds and 5 git commands to generate.