summaryrefslogtreecommitdiffstats
path: root/testsuite/parseok/kconfig.stp
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 /testsuite/parseok/kconfig.stp
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 'testsuite/parseok/kconfig.stp')
-rwxr-xr-xtestsuite/parseok/kconfig.stp3
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuite/parseok/kconfig.stp b/testsuite/parseok/kconfig.stp
new file mode 100755
index 00000000..02920853
--- /dev/null
+++ b/testsuite/parseok/kconfig.stp
@@ -0,0 +1,3 @@
+#! stap -p2
+
+%( CONFIG_NO_SUCH_CONFIG == "" %? probe never {} %: %)