#include <linux/string.h>
#include <linux/spinlock.h>
#include <linux/kernel.h>
#include <linux/time.h>
#include <uapi/asm/debug.h>
Go to the source code of this file.
|
#define | DEBUG_MAX_LEVEL 6 /* debug levels range from 0 to 6 */ |
|
#define | DEBUG_OFF_LEVEL -1 /* level where debug is switched off */ |
|
#define | DEBUG_FLUSH_ALL -1 /* parameter to flush all areas */ |
|
#define | DEBUG_MAX_VIEWS 10 /* max number of views in proc fs */ |
|
#define | DEBUG_MAX_NAME_LEN 64 /* max length for a debugfs file name */ |
|
#define | DEBUG_DEFAULT_LEVEL 3 /* initial debug level */ |
|
#define | DEBUG_DIR_ROOT "s390dbf" /* name of debug root directory in proc fs */ |
|
#define | DEBUG_DATA(entry) (char*)(entry + 1) /* data is stored behind */ |
|
#define | DEBUG_LEVEL 4 |
|
#define | INTERNAL_ERRMSG(x, y...) "E" __FILE__ "%d: " x, __LINE__, y |
|
#define | INTERNAL_WRNMSG(x, y...) "W" __FILE__ "%d: " x, __LINE__, y |
|
#define | INTERNAL_INFMSG(x, y...) "I" __FILE__ "%d: " x, __LINE__, y |
|
#define | INTERNAL_DEBMSG(x, y...) "D" __FILE__ "%d: " x, __LINE__, y |
|
#define | PRINT_DEBUG(x...) printk ( KERN_DEBUG PRINTK_HEADER x ) |
|
#define | PRINT_INFO(x...) printk ( KERN_INFO PRINTK_HEADER x ) |
|
#define | PRINT_WARN(x...) printk ( KERN_WARNING PRINTK_HEADER x ) |
|
#define | PRINT_ERR(x...) printk ( KERN_ERR PRINTK_HEADER x ) |
|
#define | PRINT_FATAL(x...) panic ( PRINTK_HEADER x ) |
|
|
typedef struct __debug_entry | debug_entry_t |
|
typedef struct debug_info | debug_info_t |
|
typedef int( | debug_header_proc_t )(debug_info_t *id, struct debug_view *view, int area, debug_entry_t *entry, char *out_buf) |
|
typedef int( | debug_format_proc_t )(debug_info_t *id, struct debug_view *view, char *out_buf, const char *in_buf) |
|
typedef int( | debug_prolog_proc_t )(debug_info_t *id, struct debug_view *view, char *out_buf) |
|
typedef int( | debug_input_proc_t )(debug_info_t *id, struct debug_view *view, struct file *file, const char __user *user_buf, size_t in_buf_size, loff_t *offset) |
|
|
int | debug_dflt_header_fn (debug_info_t *id, struct debug_view *view, int area, debug_entry_t *entry, char *out_buf) |
|
debug_entry_t * | debug_event_common (debug_info_t *id, int level, const void *data, int length) |
|
debug_entry_t * | debug_exception_common (debug_info_t *id, int level, const void *data, int length) |
|
debug_info_t * | debug_register (const char *name, int pages, int nr_areas, int buf_size) |
|
debug_info_t * | debug_register_mode (const char *name, int pages, int nr_areas, int buf_size, umode_t mode, uid_t uid, gid_t gid) |
|
void | debug_unregister (debug_info_t *id) |
|
void | debug_set_level (debug_info_t *id, int new_level) |
|
void | debug_set_critical (void) |
|
void | debug_stop_all (void) |
|
debug_entry_t * | debug_sprintf_event (debug_info_t *id, int level, char *string,...) __attribute__((format(printf |
|
debug_entry_t * | debug_sprintf_exception (debug_info_t *id, int level, char *string,...) __attribute__((format(printf |
|
debug_entry_t int | debug_register_view (debug_info_t *id, struct debug_view *view) |
|
int | debug_unregister_view (debug_info_t *id, struct debug_view *view) |
|
#define DEBUG_DEFAULT_LEVEL 3 /* initial debug level */ |
#define DEBUG_DIR_ROOT "s390dbf" /* name of debug root directory in proc fs */ |
#define DEBUG_FLUSH_ALL -1 /* parameter to flush all areas */ |
#define DEBUG_OFF_LEVEL -1 /* level where debug is switched off */ |
#define INTERNAL_DEBMSG |
( |
|
x, |
|
|
|
y... |
|
) |
| "D" __FILE__ "%d: " x, __LINE__, y |
#define INTERNAL_ERRMSG |
( |
|
x, |
|
|
|
y... |
|
) |
| "E" __FILE__ "%d: " x, __LINE__, y |
#define INTERNAL_INFMSG |
( |
|
x, |
|
|
|
y... |
|
) |
| "I" __FILE__ "%d: " x, __LINE__, y |
#define INTERNAL_WRNMSG |
( |
|
x, |
|
|
|
y... |
|
) |
| "W" __FILE__ "%d: " x, __LINE__, y |