runtime/linux/debug.h - systemtap
Macros defined
Source code
#ifndef _STP_LINUX_DEBUG_H_
#define _STP_LINUX_DEBUG_H_
#define _dbug(args...) _stp_dbug(__FUNCTION__, __LINE__, args)
#define errk(args...) do { \
printk("Systemtap Error at %s:%d ",__FUNCTION__, __LINE__); \
printk(args); \
} while (0)
#ifdef DEBUG_TRANS #define dbug_trans(level, args...) do { \
if ((level) <= DEBUG_TRANS) { \
printk("%s:%d ",__FUNCTION__, __LINE__); \
printk(args); \
} \
} while (0)
#define dbug_trans2(args...) do { \
printk("%s:%d ",__FUNCTION__, __LINE__); \
printk(args); \
} while (0)
#else
#define dbug_trans(level, args...) ;
#define dbug_trans2(args...) ;
#endif
#ifdef DEBUG_STP_ON_THE_FLY
#define dbug_otf(args...) do { \
_stp_dbug(__FUNCTION__, __LINE__, args); \
} while (0)
#else
#define dbug_otf(args...) ;
#endif
#ifdef DEBUG_UNWIND #define dbug_unwind(level, args...) do { \
if ((level) <= DEBUG_UNWIND) \
_stp_dbug(__FUNCTION__, __LINE__, args); \
} while (0)
#else
#define dbug_unwind(level, args...) ;
#endif
#if defined(DEBUG_TASK_FINDER_VMA)
#define dbug_task_vma(level, args...) do { \
if ((level) <= DEBUG_TASK_FINDER_VMA) \
_stp_dbug(__FUNCTION__, __LINE__, args); \
} while (0)
#else
#define dbug_task_vma(level, args...) ;
#endif
#ifdef DEBUG_SYMBOLS
#define dbug_sym(level, args...) do { \
if ((level) <= DEBUG_SYMBOLS) \
_stp_dbug(__FUNCTION__, __LINE__, args); \
} while (0)
#else
#define dbug_sym(level, args...) ;
#endif
#ifdef DEBUG_TRACEPOINTS
#define dbug_tp(level, args...) do { \
if ((level) <= DEBUG_TRACEPOINTS) \
_stp_dbug(__FUNCTION__, __LINE__, args); \
} while (0)
#else
#define dbug_tp(level, args...) ;
#endif
#endif