Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
trace.h File Reference
#include "debug.h"

Go to the source code of this file.

Macros

#define _MSG_TRACE
 
#define TRACE_RET(chip, ret)
 
#define TRACE_GOTO(chip, label)
 
#define RTS51X_DUMP(buf, buf_len)
 
#define CATCH_TRIGGER(chip)
 

Macro Definition Documentation

#define _MSG_TRACE

Definition at line 32 of file trace.h.

#define CATCH_TRIGGER (   chip)

Definition at line 108 of file trace.h.

#define RTS51X_DUMP (   buf,
  buf_len 
)

Definition at line 107 of file trace.h.

#define TRACE_GOTO (   chip,
  label 
)
Value:
do { \
char *_file = filename((char *)__FILE__); \
RTS51X_DEBUGP("[%s][%s]:[%d]\n", _file, __func__, __LINE__); \
(chip)->trace_msg[(chip)->msg_idx].line = (u16)(__LINE__); \
strncpy((chip)->trace_msg[(chip)->msg_idx].func, \
__func__, MSG_FUNC_LEN-1); \
strncpy((chip)->trace_msg[(chip)->msg_idx].file, \
_file, MSG_FILE_LEN-1); \
get_current_time((chip)->trace_msg[(chip)->msg_idx].timeval_buf,\
(chip)->trace_msg[(chip)->msg_idx].valid = 1; \
(chip)->msg_idx++; \
if ((chip)->msg_idx >= TRACE_ITEM_CNT) { \
(chip)->msg_idx = 0; \
} \
goto label; \
} while (0)

Definition at line 72 of file trace.h.

#define TRACE_RET (   chip,
  ret 
)
Value:
do { \
char *_file = filename((char *)__FILE__); \
RTS51X_DEBUGP("[%s][%s]:[%d]\n", _file, __func__, __LINE__); \
(chip)->trace_msg[(chip)->msg_idx].line = (u16)(__LINE__); \
strncpy((chip)->trace_msg[(chip)->msg_idx].func, \
__func__, MSG_FUNC_LEN-1); \
strncpy((chip)->trace_msg[(chip)->msg_idx].file, \
_file, MSG_FILE_LEN-1); \
get_current_time((chip)->trace_msg[(chip)->msg_idx].timeval_buf,\
(chip)->trace_msg[(chip)->msg_idx].valid = 1; \
(chip)->msg_idx++; \
if ((chip)->msg_idx >= TRACE_ITEM_CNT) { \
(chip)->msg_idx = 0; \
} \
return ret; \
} while (0)

Definition at line 53 of file trace.h.