diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2009-10-08 09:57:43 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2009-10-08 09:57:43 -0400 |
commit | 561079c8601d7ded6fe958b4cec3d0f7aec1ee63 (patch) | |
tree | b6481615519c60f87314319c1828eb6645833b19 /testsuite | |
parent | e4cf148d68fe01b680856ad39739faf99bfc29b4 (diff) | |
download | systemtap-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')
-rwxr-xr-x | testsuite/buildok/utrace.stp | 3 | ||||
-rwxr-xr-x | testsuite/parseok/kconfig.stp | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/buildok/utrace.stp b/testsuite/buildok/utrace.stp new file mode 100755 index 00000000..436bf9c4 --- /dev/null +++ b/testsuite/buildok/utrace.stp @@ -0,0 +1,3 @@ +#! stap -p4 + +probe %( CONFIG_UTRACE == "y" %? process.begin %: never %) { } 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 {} %: %) |