summaryrefslogtreecommitdiffstats
path: root/session.h
diff options
context:
space:
mode:
authorStan Cox <scox@redhat.com>2009-09-16 21:05:00 -0400
committerStan Cox <scox@redhat.com>2009-09-16 21:05:00 -0400
commit6846cfc8a5cdb24fccb19037b27a180d2300ee09 (patch)
tree9dbcddce5f4410d96b98ec5beb757e74c901e74c /session.h
parent9f7d5236c8fb1fd84636656416e1dad531e9586d (diff)
downloadsystemtap-steved-6846cfc8a5cdb24fccb19037b27a180d2300ee09.tar.gz
systemtap-steved-6846cfc8a5cdb24fccb19037b27a180d2300ee09.tar.xz
systemtap-steved-6846cfc8a5cdb24fccb19037b27a180d2300ee09.zip
* 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.
Diffstat (limited to 'session.h')
-rw-r--r--session.h4
1 files changed, 4 insertions, 0 deletions
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<Dwarf_Addr, derived_probe*> 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).