summaryrefslogtreecommitdiffstats
path: root/runtime/runtime.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/runtime.h')
-rw-r--r--runtime/runtime.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/runtime.h b/runtime/runtime.h
index 756f8607..d951833d 100644
--- a/runtime/runtime.h
+++ b/runtime/runtime.h
@@ -43,6 +43,9 @@
#define for_each_cpu(cpu) for_each_cpu_mask((cpu), cpu_possible_map)
#endif
+static void _stp_dbug (const char *func, int line, const char *fmt, ...);
+void _stp_error (const char *fmt, ...);
+
#ifdef DEBUG
/** Prints debug line.
* This function prints a debug message immediately to staprun.
@@ -50,13 +53,13 @@
* @param args A variable number of args in a format like printf.
* @ingroup io
*/
-static void _stp_dbug (const char *func, int line, const char *fmt, ...);
#define dbug(args...) _stp_dbug(__FUNCTION__, __LINE__, args)
#define kbug(args...) {printk("%s:%d ",__FUNCTION__, __LINE__); printk(args); }
#else
#define dbug(args...) ;
#define kbug(args...) ;
#endif /* DEBUG */
+#define _dbug(args...) _stp_dbug(__FUNCTION__, __LINE__, args)
#define errk(args...) {printk("Systemtap Error at %s:%d ",__FUNCTION__, __LINE__); printk(args); }
/* atomic globals */