diff options
author | Josh Stone <jistone@redhat.com> | 2009-10-06 20:01:13 -0700 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2009-10-06 20:01:13 -0700 |
commit | 038c38c6119e29189be83c3a214c635c0d02ee58 (patch) | |
tree | 52dcb2eccaee50dc4ab6684b4aec80f8b6a4663d /elaborate.h | |
parent | 47f025139d1c2e75781cdab40dc9195396133754 (diff) | |
download | systemtap-steved-038c38c6119e29189be83c3a214c635c0d02ee58.tar.gz systemtap-steved-038c38c6119e29189be83c3a214c635c0d02ee58.tar.xz systemtap-steved-038c38c6119e29189be83c3a214c635c0d02ee58.zip |
Remove the global derived_probe->semaphore map
Instead just make the semaphore address a member of derived_probe.
* session.h (systemtap_session): Remove the map sdt_semaphore_addr.
* elaborate.h (derived_probe): Add sdt_semaphore_addr directly.
* tapsets.cxx (sdt_query::record_semaphore): Write the addr directly.
(uprobe_derived_probe_group::emit_module_decls): Read it directly.
* tapset-utrace.cxx (utrace_derived_probe_group::emit_probe_decl): Ditto
Diffstat (limited to 'elaborate.h')
-rw-r--r-- | elaborate.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/elaborate.h b/elaborate.h index cd60b8bb..28294aa9 100644 --- a/elaborate.h +++ b/elaborate.h @@ -18,6 +18,10 @@ #include <sstream> #include <map> +extern "C" { +#include <elfutils/libdw.h> +} + // ------------------------------------------------------------------------ struct derived_probe; @@ -153,6 +157,9 @@ public: virtual bool needs_global_locks () { return true; } // by default, probes need locks around global variables + + // Location of semaphores to activate sdt probes + Dwarf_Addr sdt_semaphore_addr; }; // ------------------------------------------------------------------------ |