From 4ddb6dd03ee4364bdb36bc32888846faad48a080 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Thu, 17 Sep 2009 16:37:36 -0700 Subject: 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. --- session.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'session.h') diff --git a/session.h b/session.h index 4f509714..760b610a 100644 --- a/session.h +++ b/session.h @@ -223,7 +223,7 @@ struct systemtap_session // Location of semaphores to activate sdt probes - std::map sdt_semaphore_addr; + std::map 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) -- cgit