From 450718c9c424bce67e8580183788380431f90434 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Wed, 23 Sep 2009 07:41:47 -0400 Subject: PR10390: ftrace() tapset function * tapset/logging.stp (ftrace): New function. (*): Add kerneldoc to other functions. * doc/SystemTap_Tapset_Reference/tapsets.tmpl: Process logging.stp. * stapfuncs.3stap.in: Remove "LOGGING" section, now redundant. * runtime/autoconf-trace-printk.c: New autoconf test. * buildrun.cxx (compile_pass): Build it. * NEWS: Mention it. * testsuite/buildok/logging.stp: Test it. --- runtime/autoconf-trace-printk.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 runtime/autoconf-trace-printk.c (limited to 'runtime/autoconf-trace-printk.c') diff --git a/runtime/autoconf-trace-printk.c b/runtime/autoconf-trace-printk.c new file mode 100644 index 00000000..8330a58a --- /dev/null +++ b/runtime/autoconf-trace-printk.c @@ -0,0 +1,8 @@ +#include + +int bar (void) { + static char *fmt = "%s\n"; + trace_printk (fmt, "hello world"); + return 0; +} + -- cgit