From 6846cfc8a5cdb24fccb19037b27a180d2300ee09 Mon Sep 17 00:00:00 2001 From: Stan Cox Date: Wed, 16 Sep 2009 21:05:00 -0400 Subject: * sdt.h (STAP_SEMAPHORE): New. Add guard to utrace probe points. * itrace.h (__access_process_vm): Moved from here... * runtime/access_process_vm.h: New. ...to here. * translate.cxx (translate_pass): Include access_process_vm.h * session.h (sdt_semaphore_addr): New. * tapsets.cxx (sdt_query::record_semaphore): New. Record sdt_semaphore_addr. (uprobe_derived_probe_group::emit_module_decls): Allow for uprobe guard variable to be set and unset. (uprobe_derived_probe_group::emit_module_decls): Likewise. (uprobe_derived_probe_group::emit_module_exit): Likewise. * tapset-utrace.cxx (utrace_derived_probe_group::emit_probe_decl): Likewise. (utrace_derived_probe_group::emit_module_decls): Likewise. (utrace_derived_probe_group::emit_module_exit): Likewise. --- session.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'session.h') diff --git a/session.h b/session.h index a2176793..4f509714 100644 --- a/session.h +++ b/session.h @@ -221,6 +221,10 @@ struct systemtap_session void print_error_source (std::ostream&, std::string&, const token* tok); void print_warning (const std::string& w, const token* tok = 0); + + // Location of semaphores to activate sdt probes + 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) // and/or main.cxx(main). -- cgit