From 038c38c6119e29189be83c3a214c635c0d02ee58 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Tue, 6 Oct 2009 20:01:13 -0700 Subject: 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 --- session.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'session.h') diff --git a/session.h b/session.h index 760b610a..a2176793 100644 --- a/session.h +++ b/session.h @@ -221,10 +221,6 @@ 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 From 561079c8601d7ded6fe958b4cec3d0f7aec1ee63 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Thu, 8 Oct 2009 09:57:43 -0400 Subject: PR10702: preprocessor conditional for kernel CONFIG_foo * session.h (kernel_config[]): New session field. * main.cxx (parse_kernel_config): Populate it. * parse.cxx (eval_comparison): Use it. * testsuite/buildok/utrace.stp, testsuite/parseok/kconfig.stp: New tests. * NEWS, stap.1.in, doc/langref.tex: Mention it. --- session.h | 1 + 1 file changed, 1 insertion(+) (limited to 'session.h') diff --git a/session.h b/session.h index a2176793..cc13c321 100644 --- a/session.h +++ b/session.h @@ -87,6 +87,7 @@ struct systemtap_session std::string kernel_release; std::string kernel_base_release; std::string kernel_build_tree; + std::map kernel_config; std::string architecture; std::string runtime_path; std::string data_path; -- cgit