summaryrefslogtreecommitdiffstats
path: root/tapset/builtin_printk.stp
diff options
context:
space:
mode:
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 . "")
+}