Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions | Variables
debug.c File Reference
#include <linux/stddef.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/ctype.h>
#include <linux/string.h>
#include <linux/sysctl.h>
#include <asm/uaccess.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/fs.h>
#include <linux/debugfs.h>
#include <asm/debug.h>

Go to the source code of this file.

Data Structures

struct  file_private_info
 
struct  debug_sprintf_entry_t
 

Macros

#define KMSG_COMPONENT   "s390dbf"
 
#define pr_fmt(fmt)   KMSG_COMPONENT ": " fmt
 
#define DEBUG_PROLOG_ENTRY   -1
 
#define ALL_AREAS   0 /* copy all debug areas */
 
#define NO_AREAS   1 /* copy no debug areas */
 
#define CTL_S390DBF_STOPPABLE   5678
 
#define CTL_S390DBF_ACTIVE   5679
 
#define DEBUG_SPRINTF_MAX_ARGS   10
 

Typedefs

typedef struct file_private_info file_private_info_t
 

Functions

 EXPORT_SYMBOL (debug_raw_view)
 
 EXPORT_SYMBOL (debug_hex_ascii_view)
 
 EXPORT_SYMBOL (debug_sprintf_view)
 
debug_info_tdebug_register_mode (const char *name, int pages_per_area, int nr_areas, int buf_size, umode_t mode, uid_t uid, gid_t gid)
 
 EXPORT_SYMBOL (debug_register_mode)
 
debug_info_tdebug_register (const char *name, int pages_per_area, int nr_areas, int buf_size)
 
 EXPORT_SYMBOL (debug_register)
 
void debug_unregister (debug_info_t *id)
 
 EXPORT_SYMBOL (debug_unregister)
 
void debug_set_level (debug_info_t *id, int new_level)
 
 EXPORT_SYMBOL (debug_set_level)
 
void debug_stop_all (void)
 
 EXPORT_SYMBOL (debug_stop_all)
 
void debug_set_critical (void)
 
debug_entry_tdebug_event_common (debug_info_t *id, int level, const void *buf, int len)
 
 EXPORT_SYMBOL (debug_event_common)
 
debug_entry_tdebug_exception_common (debug_info_t *id, int level, const void *buf, int len)
 
 EXPORT_SYMBOL (debug_exception_common)
 
debug_entry_tdebug_sprintf_event (debug_info_t *id, int level, char *string,...)
 
 EXPORT_SYMBOL (debug_sprintf_event)
 
debug_entry_tdebug_sprintf_exception (debug_info_t *id, int level, char *string,...)
 
 EXPORT_SYMBOL (debug_sprintf_exception)
 
int debug_register_view (debug_info_t *id, struct debug_view *view)
 
 EXPORT_SYMBOL (debug_register_view)
 
int debug_unregister_view (debug_info_t *id, struct debug_view *view)
 
 EXPORT_SYMBOL (debug_unregister_view)
 
int debug_dflt_header_fn (debug_info_t *id, struct debug_view *view, int area, debug_entry_t *entry, char *out_buf)
 
 EXPORT_SYMBOL (debug_dflt_header_fn)
 
 postcore_initcall (debug_init)
 

Variables

struct debug_view debug_raw_view
 
struct debug_view debug_hex_ascii_view
 
struct debug_view debug_sprintf_view
 

Macro Definition Documentation

#define ALL_AREAS   0 /* copy all debug areas */

Definition at line 32 of file debug.c.

#define CTL_S390DBF_ACTIVE   5679

Definition at line 884 of file debug.c.

#define CTL_S390DBF_STOPPABLE   5678

Definition at line 883 of file debug.c.

#define DEBUG_PROLOG_ENTRY   -1

Definition at line 30 of file debug.c.

#define DEBUG_SPRINTF_MAX_ARGS   10

Definition at line 1487 of file debug.c.

#define KMSG_COMPONENT   "s390dbf"

Definition at line 12 of file debug.c.

#define NO_AREAS   1 /* copy no debug areas */

Definition at line 33 of file debug.c.

#define pr_fmt (   fmt)    KMSG_COMPONENT ": " fmt

Definition at line 13 of file debug.c.

Typedef Documentation

Function Documentation

int debug_dflt_header_fn ( debug_info_t id,
struct debug_view view,
int  area,
debug_entry_t entry,
char out_buf 
)

Definition at line 1458 of file debug.c.

debug_entry_t* debug_event_common ( debug_info_t id,
int  level,
const void buf,
int  len 
)

Definition at line 951 of file debug.c.

debug_entry_t* debug_exception_common ( debug_info_t id,
int  level,
const void buf,
int  len 
)

Definition at line 979 of file debug.c.

debug_info_t* debug_register ( const char name,
int  pages_per_area,
int  nr_areas,
int  buf_size 
)

Definition at line 730 of file debug.c.

debug_info_t* debug_register_mode ( const char name,
int  pages_per_area,
int  nr_areas,
int  buf_size,
umode_t  mode,
uid_t  uid,
gid_t  gid 
)

Definition at line 693 of file debug.c.

int debug_register_view ( debug_info_t id,
struct debug_view view 
)

Definition at line 1099 of file debug.c.

void debug_set_critical ( void  )

Definition at line 940 of file debug.c.

void debug_set_level ( debug_info_t id,
int  new_level 
)

Definition at line 801 of file debug.c.

debug_entry_t* debug_sprintf_event ( debug_info_t id,
int  level,
char string,
  ... 
)

Definition at line 1022 of file debug.c.

debug_entry_t* debug_sprintf_exception ( debug_info_t id,
int  level,
char string,
  ... 
)

Definition at line 1060 of file debug.c.

void debug_stop_all ( void  )

Definition at line 933 of file debug.c.

void debug_unregister ( debug_info_t id)

Definition at line 744 of file debug.c.

int debug_unregister_view ( debug_info_t id,
struct debug_view view 
)

Definition at line 1147 of file debug.c.

EXPORT_SYMBOL ( debug_raw_view  )
EXPORT_SYMBOL ( debug_hex_ascii_view  )
EXPORT_SYMBOL ( debug_sprintf_view  )
EXPORT_SYMBOL ( debug_register_mode  )
EXPORT_SYMBOL ( debug_register  )
EXPORT_SYMBOL ( debug_unregister  )
EXPORT_SYMBOL ( debug_set_level  )
EXPORT_SYMBOL ( debug_stop_all  )
EXPORT_SYMBOL ( debug_event_common  )
EXPORT_SYMBOL ( debug_exception_common  )
EXPORT_SYMBOL ( debug_sprintf_event  )
EXPORT_SYMBOL ( debug_sprintf_exception  )
EXPORT_SYMBOL ( debug_register_view  )
EXPORT_SYMBOL ( debug_unregister_view  )
EXPORT_SYMBOL ( debug_dflt_header_fn  )
postcore_initcall ( debug_init  )

Variable Documentation

struct debug_view debug_hex_ascii_view
Initial value:
= {
"hex_ascii",
&debug_hex_ascii_format_fn,
NULL
}

Definition at line 115 of file debug.c.

struct debug_view debug_raw_view
Initial value:
= {
"raw",
&debug_raw_header_fn,
&debug_raw_format_fn,
NULL
}

Definition at line 105 of file debug.c.

struct debug_view debug_sprintf_view
Initial value:
= {
"sprintf",
(debug_format_proc_t*)&debug_sprintf_format_fn,
}

Definition at line 152 of file debug.c.