diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2009-09-23 07:41:47 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2009-09-23 07:41:47 -0400 |
commit | 450718c9c424bce67e8580183788380431f90434 (patch) | |
tree | 8b91626b7f54d4522d39fd8178dbeba80b2a415d /runtime/autoconf-trace-printk.c | |
parent | 6a7aa1a180807e49cfeeccdb0eb460b41092a229 (diff) | |
download | systemtap-steved-450718c9c424bce67e8580183788380431f90434.tar.gz systemtap-steved-450718c9c424bce67e8580183788380431f90434.tar.xz systemtap-steved-450718c9c424bce67e8580183788380431f90434.zip |
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.
Diffstat (limited to 'runtime/autoconf-trace-printk.c')
-rw-r--r-- | runtime/autoconf-trace-printk.c | 8 |
1 files changed, 8 insertions, 0 deletions
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 <linux/kernel.h> + +int bar (void) { + static char *fmt = "%s\n"; + trace_printk (fmt, "hello world"); + return 0; +} + |