Go to the source code of this file.
OCS debug declarations
Definition in file ocs_debug.h.
Macros | |
| #define | OCS_LOG_ENABLE_SCSI_TGT_TRACE(ocs) ocs_debug_is_enabled(OCS_DEBUG_ENABLE_SCSI_TGT_TRACE) |
| #define | OCS_LOG_ENABLE_Q_FULL_BUSY_MSG(ocs) (((ocs) != NULL) ? (((ocs)->logmask & (1U << 5)) != 0) : 0) |
| #define | OCS_LOG_ENABLE_IO_ERRORS(ocs) (((ocs) != NULL) ? (((ocs)->logmask & (1U << 6)) != 0) : 0) |
| #define | ocs_queue_history_wq(...) |
| #define | ocs_queue_history_cqe(...) |
| #define | ocs_queue_history_misc(...) |
| #define | ocs_queue_history_init(...) |
| #define | ocs_queue_history_free(...) |
| #define | OCS_DEBUG_ALWAYS (1U << 0) |
| #define | OCS_DEBUG_ENABLE_MQ_DUMP (1U << 1) |
| #define | OCS_DEBUG_ENABLE_CQ_DUMP (1U << 2) |
| #define | OCS_DEBUG_ENABLE_WQ_DUMP (1U << 3) |
| #define | OCS_DEBUG_ENABLE_IO_TRACE (1U << 4) |
| #define | OCS_DEBUG_ENABLE_SM_TRACE (1U << 5) |
| #define | OCS_DEBUG_ENABLE_SCSI_TGT_TRACE (1U << 6) |
| #define | OCS_DEBUG_ENABLE_ISNS_LOG (1U << 7) |
| #define | ocs_assert(cond,...) |
| #define | io_trace(io, fmt,...) |
Functions | |
| void | ocs_dump32 (uint32_t, ocs_os_handle_t, const char *, void *, uint32_t) |
| Dump 32 bit hex/ascii data. More... | |
| void | ocs_swap_and_dump32 (uint32_t, ocs_os_handle_t, const char *, void *, uint32_t) |
| 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_dump_service_params (const char *label, void *sparms) |
| #define io_trace | ( | io, | |
| fmt, | |||
| ... | |||
| ) |
Definition at line 187 of file ocs_debug.h.
| #define ocs_assert | ( | cond, | |
| ... | |||
| ) |
Definition at line 163 of file ocs_debug.h.
| #define OCS_DEBUG_ALWAYS (1U << 0) |
Definition at line 154 of file ocs_debug.h.
| #define OCS_DEBUG_ENABLE_CQ_DUMP (1U << 2) |
Definition at line 156 of file ocs_debug.h.
| #define OCS_DEBUG_ENABLE_IO_TRACE (1U << 4) |
Definition at line 158 of file ocs_debug.h.
| #define OCS_DEBUG_ENABLE_ISNS_LOG (1U << 7) |
Definition at line 161 of file ocs_debug.h.
| #define OCS_DEBUG_ENABLE_MQ_DUMP (1U << 1) |
Definition at line 155 of file ocs_debug.h.
| #define OCS_DEBUG_ENABLE_SCSI_TGT_TRACE (1U << 6) |
Definition at line 160 of file ocs_debug.h.
| #define OCS_DEBUG_ENABLE_SM_TRACE (1U << 5) |
Definition at line 159 of file ocs_debug.h.
| #define OCS_DEBUG_ENABLE_WQ_DUMP (1U << 3) |
Definition at line 157 of file ocs_debug.h.
| #define OCS_LOG_ENABLE_IO_ERRORS | ( | ocs | ) | (((ocs) != NULL) ? (((ocs)->logmask & (1U << 6)) != 0) : 0) |
Definition at line 75 of file ocs_debug.h.
| #define OCS_LOG_ENABLE_Q_FULL_BUSY_MSG | ( | ocs | ) | (((ocs) != NULL) ? (((ocs)->logmask & (1U << 5)) != 0) : 0) |
Definition at line 74 of file ocs_debug.h.
| #define OCS_LOG_ENABLE_SCSI_TGT_TRACE | ( | ocs | ) | ocs_debug_is_enabled(OCS_DEBUG_ENABLE_SCSI_TGT_TRACE) |
Definition at line 72 of file ocs_debug.h.
| #define ocs_queue_history_cqe | ( | ... | ) |
Definition at line 147 of file ocs_debug.h.
| #define ocs_queue_history_free | ( | ... | ) |
Definition at line 150 of file ocs_debug.h.
| #define ocs_queue_history_init | ( | ... | ) |
Definition at line 149 of file ocs_debug.h.
| #define ocs_queue_history_misc | ( | ... | ) |
Definition at line 148 of file ocs_debug.h.
| #define ocs_queue_history_wq | ( | ... | ) |
Definition at line 146 of file ocs_debug.h.
| void ocs_debug_attach | ( | void * | ) |
| void ocs_debug_detach | ( | void * | ) |
| void ocs_dump_service_params | ( | const char * | label, |
| void * | sparms | ||
| ) |
| void ocs_swap_and_dump32 | ( | uint32_t | , |
| ocs_os_handle_t | , | ||
| const char * | , | ||
| void * | , | ||
| uint32_t | |||
| ) |
Definition at line 196 of file ocs_debug.c.