summaryrefslogtreecommitdiffstats
path: root/tapset/builtin_printk.stp
diff options
context:
space:
mode:
authorfche <fche>2005-07-28 18:07:02 +0000
committerfche <fche>2005-07-28 18:07:02 +0000
commit24cb178fd82936f55d254ebd0cd79802da21134a (patch)
treed9fbde4a94c16abf37a994c7d3ae147d04b77919 /tapset/builtin_printk.stp
parentb290c791d701b5841ed824fddfce3f949b0a7b61 (diff)
downloadsystemtap-steved-24cb178fd82936f55d254ebd0cd79802da21134a.tar.gz
systemtap-steved-24cb178fd82936f55d254ebd0cd79802da21134a.tar.xz
systemtap-steved-24cb178fd82936f55d254ebd0cd79802da21134a.zip
2005-07-28 Frank Ch. Eigler <fche@redhat.com>
translator/1120 * main.cxx (main): Preset -R and -I options from environment variables (if set). Pass guru mode flags to parser. * parse.cxx (privileged): New parser operation flag. Update callers. (parse_embeddedcode): Throw an error if !privileged. (parse_functiondecl): Change signature. Prevent duplicates. (parse_globals): Ditto. * parse.h: Corresponding changes. * tapset/*.stp: Beginnings of real tapset library, to replace previous builtins. * tapsets.cxx: Greatly reduce verbose mode output. * Makefile.am: Install & dist it. * runtest.sh: Refer to it. * Makefile.in, aclocal.m4: Regenerated. * testsuite/*/*.stp: Set guru mode via /bin/sh if needed. * testusite/*/*ko.stp: Homogenize shell scripts.
Diffstat (limited to 'tapset/builtin_printk.stp')
-rw-r--r--tapset/builtin_printk.stp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tapset/builtin_printk.stp b/tapset/builtin_printk.stp
new file mode 100644
index 00000000..3e456fb2
--- /dev/null
+++ b/tapset/builtin_printk.stp
@@ -0,0 +1,7 @@
+function _printk (msg) %{
+ printk (KERN_INFO "%s\n", THIS->msg);
+%}
+
+function printk (msg) {
+ return 0 + _printk (msg . "")
+}