Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
ctcm_dbug.h File Reference
#include <asm/debug.h>

Go to the source code of this file.

Data Structures

struct  ctcm_dbf_info
 

Macros

#define do_debug   0
 
#define do_debug_ccw   0
 
#define do_debug_data   0
 
#define CTC_DBF_ALWAYS   0 /* always print this */
 
#define CTC_DBF_EMERG   0 /* system is unusable */
 
#define CTC_DBF_ALERT   1 /* action must be taken immediately */
 
#define CTC_DBF_CRIT   2 /* critical conditions */
 
#define CTC_DBF_ERROR   3 /* error conditions */
 
#define CTC_DBF_WARN   4 /* warning conditions */
 
#define CTC_DBF_NOTICE   5 /* normal but significant condition */
 
#define CTC_DBF_INFO   5 /* informational */
 
#define CTC_DBF_DEBUG   6 /* debug-level messages */
 
#define CTCM_FUNTAIL   strtail((char *)__func__, 16)
 
#define CTCM_DBF_TEXT(name, level, text)
 
#define CTCM_DBF_HEX(name, level, addr, len)
 
#define CTCM_DBF_TEXT_(name, level, text...)   ctcm_dbf_longtext(CTCM_DBF_##name, level, text)
 
#define CTCM_DBF_DEV_NAME(cat, dev, text)
 
#define MPC_DBF_DEV_NAME(cat, dev, text)
 
#define CTCMY_DBF_DEV_NAME(cat, dev, text)
 
#define CTCM_DBF_DEV(cat, dev, text)
 
#define MPC_DBF_DEV(cat, dev, text)
 
#define CTCMY_DBF_DEV(cat, dev, text)
 

Enumerations

enum  ctcm_dbf_names {
  CTCM_DBF_SETUP, CTCM_DBF_ERROR, CTCM_DBF_TRACE, CTCM_DBF_MPC_SETUP,
  CTCM_DBF_MPC_ERROR, CTCM_DBF_MPC_TRACE, CTCM_DBF_INFOS
}
 

Functions

int ctcm_register_dbf_views (void)
 
void ctcm_unregister_dbf_views (void)
 
void ctcm_dbf_longtext (enum ctcm_dbf_names dbf_nix, int level, char *text,...)
 

Variables

struct ctcm_dbf_info ctcm_dbf [CTCM_DBF_INFOS]
 

Macro Definition Documentation

#define CTC_DBF_ALERT   1 /* action must be taken immediately */

Definition at line 36 of file ctcm_dbug.h.

#define CTC_DBF_ALWAYS   0 /* always print this */

Definition at line 34 of file ctcm_dbug.h.

#define CTC_DBF_CRIT   2 /* critical conditions */

Definition at line 37 of file ctcm_dbug.h.

#define CTC_DBF_DEBUG   6 /* debug-level messages */

Definition at line 42 of file ctcm_dbug.h.

#define CTC_DBF_EMERG   0 /* system is unusable */

Definition at line 35 of file ctcm_dbug.h.

#define CTC_DBF_ERROR   3 /* error conditions */

Definition at line 38 of file ctcm_dbug.h.

#define CTC_DBF_INFO   5 /* informational */

Definition at line 41 of file ctcm_dbug.h.

#define CTC_DBF_NOTICE   5 /* normal but significant condition */

Definition at line 40 of file ctcm_dbug.h.

#define CTC_DBF_WARN   4 /* warning conditions */

Definition at line 39 of file ctcm_dbug.h.

#define CTCM_DBF_DEV (   cat,
  dev,
  text 
)
Value:
do { \
CTCM_DBF_TEXT_(cat, CTC_DBF_INFO, "%s(%p) :-: %s", \
} while (0)

Definition at line 121 of file ctcm_dbug.h.

#define CTCM_DBF_DEV_NAME (   cat,
  dev,
  text 
)
Value:
do { \
CTCM_DBF_TEXT_(cat, CTC_DBF_INFO, "%s(%s) :- %s", \
CTCM_FUNTAIL, dev->name, text); \
} while (0)

Definition at line 96 of file ctcm_dbug.h.

#define CTCM_DBF_HEX (   name,
  level,
  addr,
  len 
)
Value:
do { \
debug_event(ctcm_dbf[CTCM_DBF_##name].id, \
level, (void *)(addr), len); \
} while (0)

Definition at line 82 of file ctcm_dbug.h.

#define CTCM_DBF_TEXT (   name,
  level,
  text 
)
Value:
do { \
debug_text_event(ctcm_dbf[CTCM_DBF_##name].id, level, text); \
} while (0)

Definition at line 77 of file ctcm_dbug.h.

#define CTCM_DBF_TEXT_ (   name,
  level,
  text... 
)    ctcm_dbf_longtext(CTCM_DBF_##name, level, text)

Definition at line 88 of file ctcm_dbug.h.

#define CTCM_FUNTAIL   strtail((char *)__func__, 16)

Definition at line 75 of file ctcm_dbug.h.

#define CTCMY_DBF_DEV (   cat,
  dev,
  text 
)
Value:
do { \
if (IS_MPCDEV(dev)) \
MPC_DBF_DEV(cat, dev, text); \
} while (0)

Definition at line 133 of file ctcm_dbug.h.

#define CTCMY_DBF_DEV_NAME (   cat,
  dev,
  text 
)
Value:
do { \
if (IS_MPCDEV(dev)) \
MPC_DBF_DEV_NAME(cat, dev, text); \
} while (0)

Definition at line 108 of file ctcm_dbug.h.

#define do_debug   0

Definition at line 19 of file ctcm_dbug.h.

#define do_debug_ccw   0

Definition at line 25 of file ctcm_dbug.h.

#define do_debug_data   0

Definition at line 30 of file ctcm_dbug.h.

#define MPC_DBF_DEV (   cat,
  dev,
  text 
)
Value:
do { \
CTCM_DBF_TEXT_(MPC_##cat, CTC_DBF_INFO, "%s(%p) :=: %s", \
} while (0)

Definition at line 127 of file ctcm_dbug.h.

#define MPC_DBF_DEV_NAME (   cat,
  dev,
  text 
)
Value:
do { \
CTCM_DBF_TEXT_(MPC_##cat, CTC_DBF_INFO, "%s(%s) := %s", \
CTCM_FUNTAIL, dev->name, text); \
} while (0)

Definition at line 102 of file ctcm_dbug.h.

Enumeration Type Documentation

Enumerator:
CTCM_DBF_SETUP 
CTCM_DBF_ERROR 
CTCM_DBF_TRACE 
CTCM_DBF_MPC_SETUP 
CTCM_DBF_MPC_ERROR 
CTCM_DBF_MPC_TRACE 
CTCM_DBF_INFOS 

Definition at line 44 of file ctcm_dbug.h.

Function Documentation

void ctcm_dbf_longtext ( enum ctcm_dbf_names  dbf_nix,
int  level,
char text,
  ... 
)

Definition at line 64 of file ctcm_dbug.c.

int ctcm_register_dbf_views ( void  )

Definition at line 41 of file ctcm_dbug.c.

void ctcm_unregister_dbf_views ( void  )

Definition at line 32 of file ctcm_dbug.c.

Variable Documentation

Definition at line 23 of file ctcm_dbug.c.