From 0d155048397c88db09a25989450568e25af8f44c Mon Sep 17 00:00:00 2001 From: fche Date: Thu, 11 Aug 2005 16:53:45 +0000 Subject: 2005-08-11 Frank Ch. Eigler * translate.cxx (emit_function): Add an extra { } around the function body visitation. * tapset/timestamp_functions.stp: New file. * tapset/builtin_conversions.stp: Aggregated from [hex]string. * tapset/builtin_logging.stp: Aggregated from log/warn/printk. --- tapset/builtin_logging.stp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tapset/builtin_logging.stp (limited to 'tapset/builtin_logging.stp') diff --git a/tapset/builtin_logging.stp b/tapset/builtin_logging.stp new file mode 100644 index 00000000..51fb97e4 --- /dev/null +++ b/tapset/builtin_logging.stp @@ -0,0 +1,21 @@ +function _log (msg) %{ + _stp_log (THIS->msg); +%} + +function log (msg) { + _log (msg . "") +} +function _printk (msg) %{ + printk (KERN_INFO "%s\n", THIS->msg); +%} + +function printk (msg) { + _printk (msg . "") +} +function _warn (msg) %{ + _stp_warn (THIS->msg); +%} + +function warn (msg) { + _warn (msg . "") +} -- cgit