summaryrefslogtreecommitdiffstats
path: root/session.h
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2009-10-08 09:57:43 -0400
committerFrank Ch. Eigler <fche@elastic.org>2009-10-08 09:57:43 -0400
commit561079c8601d7ded6fe958b4cec3d0f7aec1ee63 (patch)
treeb6481615519c60f87314319c1828eb6645833b19 /session.h
parente4cf148d68fe01b680856ad39739faf99bfc29b4 (diff)
downloadsystemtap-steved-561079c8601d7ded6fe958b4cec3d0f7aec1ee63.tar.gz
systemtap-steved-561079c8601d7ded6fe958b4cec3d0f7aec1ee63.tar.xz
systemtap-steved-561079c8601d7ded6fe958b4cec3d0f7aec1ee63.zip
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.
Diffstat (limited to 'session.h')
-rw-r--r--session.h1
1 files changed, 1 insertions, 0 deletions
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<std::string,std::string> kernel_config;
std::string architecture;
std::string runtime_path;
std::string data_path;