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. --- doc/langref.tex | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'doc/langref.tex') diff --git a/doc/langref.tex b/doc/langref.tex index 523deb1b..3afe6128 100644 --- a/doc/langref.tex +++ b/doc/langref.tex @@ -1816,6 +1816,17 @@ probe kernel.function ( %( arch == "ia64" %? probe syscall.vliw = kernel.function("vliw_widget") {} %) + +\end{verbatim} +\end{vindent} + +The following code adapts to the presence of a kernel CONFIG option. + +\begin{vindent} +\begin{verbatim} +%( CONFIG_UTRACE == "y" %? + probe process.syscall {} +%) \end{verbatim} \end{vindent} -- cgit