diff options
author | Josh Stone <jistone@redhat.com> | 2009-09-17 16:37:36 -0700 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2009-09-17 16:52:31 -0700 |
commit | 4ddb6dd03ee4364bdb36bc32888846faad48a080 (patch) | |
tree | bfc76fbbea9aa5f50b6ec7da6ea8eabcb0fbc1e5 /session.h | |
parent | 6bde4f381475cea055352d8ad5f60bb2f24de21d (diff) | |
download | systemtap-steved-4ddb6dd03ee4364bdb36bc32888846faad48a080.tar.gz systemtap-steved-4ddb6dd03ee4364bdb36bc32888846faad48a080.tar.xz systemtap-steved-4ddb6dd03ee4364bdb36bc32888846faad48a080.zip |
Map std semaphores from probe->addr
Each probe needs to know the associated semaphore address, rather than
the other way around.
* session.h (sdt_semaphore_addr): Reverse the key-value types.
* tapsets.cxx (record_semaphore): Take an index to only record the
semaphore for newly added results.
(sdt_query::handle_query_module): Adjust accordingly.
(uprobe_derived_probe_group::emit_module_decls): Now it's a simple map
lookup for sdt_sem_address.
* tapset-utrace.cxx (utrace_derived_probe_group::emit_probe_decl): Ditto.
Diffstat (limited to 'session.h')
-rw-r--r-- | session.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -223,7 +223,7 @@ struct systemtap_session // Location of semaphores to activate sdt probes - std::map<Dwarf_Addr, derived_probe*> sdt_semaphore_addr; + std::map<derived_probe*, Dwarf_Addr> sdt_semaphore_addr; // NB: It is very important for all of the above (and below) fields // to be cleared in the systemtap_session ctor (elaborate.cxx) |