Go to the source code of this file.
OCS debug declarations
Definition in file ocs_debug.h.
|
| void | ocs_dump32 (uint32_t, ocs_os_handle_t, const char *, void *, uint32_t) |
| | Dump 32 bit hex/ascii data. More...
|
| |
| void | ocs_debug_enable (uint32_t mask) |
| | enable debug options More...
|
| |
| void | ocs_debug_disable (uint32_t mask) |
| | disable debug options More...
|
| |
| int | ocs_debug_is_enabled (uint32_t mask) |
| | return true if debug bits are enabled More...
|
| |
| void | ocs_debug_attach (void *) |
| |
| void | ocs_debug_detach (void *) |
| |
| void | _ocs_assert (const char *cond, const char *filename, int linenum) |
| |
| void | ocs_dump_service_params (const char *label, void *sparms) |
| |
| void | ocs_display_sparams (const char *prelabel, const char *reqlabel, int dest, void *textbuf, void *sparams) |
| | Display service parameters. More...
|
| |
| #define ocs_assert |
( |
|
cond, |
|
|
|
... |
|
) |
| |
Value:do { \
return __VA_ARGS__; \
} \
} while (0)
void _ocs_assert(const char *cond, const char *filename, int linenum)
Definition at line 176 of file ocs_debug.h.
| #define OCS_DEBUG_ALWAYS (1U << 0) |
| #define OCS_DEBUG_ENABLE_CQ_DUMP (1U << 2) |
| #define OCS_DEBUG_ENABLE_EQ_DUMP (1U << 4) |
| #define OCS_DEBUG_ENABLE_MQ_DUMP (1U << 1) |
| #define OCS_DEBUG_ENABLE_SPARAM_DUMP (1U << 5) |
| #define OCS_DEBUG_ENABLE_WQ_DUMP (1U << 3) |
| #define OCS_LOG_ENABLE_DOMAIN_SM_TRACE |
( |
|
ocs | ) |
(((ocs) != NULL) ? (((ocs)->logmask & (1U << 4)) != 0) : 0) |
| #define OCS_LOG_ENABLE_ELS_TRACE |
( |
|
ocs | ) |
(((ocs) != NULL) ? (((ocs)->logmask & (1U << 1)) != 0) : 0) |
| #define OCS_LOG_ENABLE_IO_ERRORS |
( |
|
ocs | ) |
(((ocs) != NULL) ? (((ocs)->logmask & (1U << 6)) != 0) : 0) |
| #define OCS_LOG_ENABLE_Q_FULL_BUSY_MSG |
( |
|
ocs | ) |
(((ocs) != NULL) ? (((ocs)->logmask & (1U << 5)) != 0) : 0) |
| #define OCS_LOG_ENABLE_SCSI_TGT_TRACE |
( |
|
ocs | ) |
(((ocs) != NULL) ? (((ocs)->logmask & (1U << 3)) != 0) : 0) |
| #define OCS_LOG_ENABLE_SCSI_TRACE |
( |
|
ocs | ) |
(((ocs) != NULL) ? (((ocs)->logmask & (1U << 2)) != 0) : 0) |
| #define OCS_LOG_ENABLE_SM_TRACE |
( |
|
ocs | ) |
(((ocs) != NULL) ? (((ocs)->logmask & (1U << 0)) != 0) : 0) |
| #define ocs_queue_history_cqe |
( |
|
... | ) |
|
| #define ocs_queue_history_free |
( |
|
... | ) |
|
| #define ocs_queue_history_init |
( |
|
... | ) |
|
| #define ocs_queue_history_misc |
( |
|
... | ) |
|
| #define ocs_queue_history_wq |
( |
|
... | ) |
|
| void _ocs_assert |
( |
const char * |
cond, |
|
|
const char * |
filename, |
|
|
int |
linenum |
|
) |
| |
| void ocs_debug_attach |
( |
void * |
| ) |
|
| void ocs_debug_detach |
( |
void * |
| ) |
|
| void ocs_display_sparams |
( |
const char * |
prelabel, |
|
|
const char * |
reqlabel, |
|
|
int |
dest, |
|
|
void * |
textbuf, |
|
|
void * |
sparams |
|
) |
| |
Display service parameters.
- Parameters
-
| prelabel | leading display label |
| reqlabel | display label |
| dest | destination 0=ocs_log, 1=textbuf |
| textbuf | text buffer destination (if dest==1) |
| sparams | pointer to service parameter |
- Returns
- none
Definition at line 495 of file ocs_debug.c.
| void ocs_dump_service_params |
( |
const char * |
label, |
|
|
void * |
sparms |
|
) |
| |