diff options
author | hunt <hunt> | 2007-09-10 16:18:42 +0000 |
---|---|---|
committer | hunt <hunt> | 2007-09-10 16:18:42 +0000 |
commit | f0d5b7785b8275fe4017b796e2fedcf7829f8db0 (patch) | |
tree | 08aa318a9e05d674370c5676c9188987be2f080b /runtime/runtime.h | |
parent | c4def167a224cf416b1dc16ec82ae791422d568d (diff) | |
download | systemtap-steved-f0d5b7785b8275fe4017b796e2fedcf7829f8db0.tar.gz systemtap-steved-f0d5b7785b8275fe4017b796e2fedcf7829f8db0.tar.xz systemtap-steved-f0d5b7785b8275fe4017b796e2fedcf7829f8db0.zip |
2007-09-10 Martin Hunt <hunt@redhat.com>
* procfs.c: New file. Common runtime procfs functions.
Diffstat (limited to 'runtime/runtime.h')
-rw-r--r-- | runtime/runtime.h | 5 |
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 */ |