]> sourceware.org Git - systemtap.git/commit
PR11151: Recover stap_uprobes slots on process exit
authorJosh Stone <jistone@redhat.com>
Fri, 15 Jan 2010 00:40:45 +0000 (16:40 -0800)
committerJosh Stone <jistone@redhat.com>
Fri, 15 Jan 2010 00:40:45 +0000 (16:40 -0800)
commit19d91f6c2fcc4dea3b86e05721275cf0f8117e74
tree317bc925b18679f120538cc74165758641ff390c
parent622fa74aa720b3eda55c81530d458e3ea7792bb2
PR11151: Recover stap_uprobes slots on process exit

When a process exits, it won't necessarily bother to munmap all of its
shared libraries.  This patch makes sure that with uprobes in libraries,
we still grab an exit notification and clear everything out.

* runtime/uprobes-common.c (stap_uprobe_process_munmap): New.
* tapsets.cxx (uprobe_derived_probe_group::emit_module_decls): Use above
  callback so that we can recover our resources on process exit.
runtime/uprobes-common.c
runtime/uprobes-common.h
tapsets.cxx
This page took 0.029226 seconds and 5 git commands to generate.