From f0d5b7785b8275fe4017b796e2fedcf7829f8db0 Mon Sep 17 00:00:00 2001 From: hunt Date: Mon, 10 Sep 2007 16:18:42 +0000 Subject: 2007-09-10 Martin Hunt * procfs.c: New file. Common runtime procfs functions. --- runtime/runtime.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'runtime/runtime.h') 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 */ -- cgit