Main Page | Class List | Directories | File List | Class Members | File Members

ipmi_debug.h File Reference

#include <OpenIPMI/os_handler.h>

Go to the source code of this file.

Defines

#define DEBUG_MSG_BIT   (1 << 0)
#define DEBUG_RAWMSG_BIT   (1 << 1)
#define DEBUG_EVENTS_BIT   (1 << 3)
#define DEBUG_CON0_FAIL_BIT   (1 << 4)
#define DEBUG_CON1_FAIL_BIT   (1 << 5)
#define DEBUG_CON2_FAIL_BIT   (1 << 6)
#define DEBUG_CON3_FAIL_BIT   (1 << 7)
#define DEBUG_MSG_ERR_BIT   (1 << 8)
#define DEBUG_MSG   (__ipmi_log_mask & DEBUG_MSG_BIT)
#define DEBUG_MSG_ENABLE()   __ipmi_log_mask |= DEBUG_MSG_BIT
#define DEBUG_MSG_DISABLE()   __ipmi_log_mask &= ~DEBUG_MSG_BIT
#define DEBUG_RAWMSG   (__ipmi_log_mask & DEBUG_RAWMSG_BIT)
#define DEBUG_RAWMSG_ENABLE()   __ipmi_log_mask |= DEBUG_RAWMSG_BIT
#define DEBUG_RAWMSG_DISABLE()   __ipmi_log_mask &= ~DEBUG_RAWMSG_BIT
#define DEBUG_EVENTS   (__ipmi_log_mask & DEBUG_EVENTS_BIT)
#define DEBUG_EVENTS_ENABLE()   __ipmi_log_mask |= DEBUG_EVENTS_BIT
#define DEBUG_EVENTS_DISABLE()   __ipmi_log_mask &= ~DEBUG_EVENTS_BIT
#define DEBUG_CON_FAIL(con)   (__ipmi_log_mask & (DEBUG_CON0_FAIL_BIT << con))
#define DEBUG_CON_FAIL_ENABLE(con)   __ipmi_log_mask |= (DEBUG_CON0_FAIL_BIT << con)
#define DEBUG_CON_FAIL_DISABLE(con)   __ipmi_log_mask &= ~(DEBUG_CON0_FAIL_BIT << con)
#define DEBUG_MSG_ERR   (__ipmi_log_mask & DEBUG_MSG_ERR_BIT)
#define DEBUG_MSG_ERR_ENABLE()   __ipmi_log_mask |= DEBUG_MSG_ERR_BIT
#define DEBUG_MSG_ERR_DISABLE()   __ipmi_log_mask &= ~DEBUG_MSG_ERR_BIT
#define IPMI_REPORT_LOCK_ERROR(handler, str)   do {} while (0)
#define DEBUG_LOCKS   (__ipmi_debug_locks)
#define DEBUG_LOCKS_ENABLE()   __ipmi_debug_locks = 1
#define DEBUG_LOCKS_DISABLE()   __ipmi_debug_locks = 0

Variables

unsigned int __ipmi_log_mask
int __ipmi_debug_locks


Define Documentation

#define DEBUG_CON0_FAIL_BIT   (1 << 4)
 

Definition at line 77 of file ipmi_debug.h.

#define DEBUG_CON1_FAIL_BIT   (1 << 5)
 

Definition at line 78 of file ipmi_debug.h.

#define DEBUG_CON2_FAIL_BIT   (1 << 6)
 

Definition at line 79 of file ipmi_debug.h.

#define DEBUG_CON3_FAIL_BIT   (1 << 7)
 

Definition at line 80 of file ipmi_debug.h.

#define DEBUG_CON_FAIL con   )     (__ipmi_log_mask & (DEBUG_CON0_FAIL_BIT << con))
 

Definition at line 96 of file ipmi_debug.h.

#define DEBUG_CON_FAIL_DISABLE con   )     __ipmi_log_mask &= ~(DEBUG_CON0_FAIL_BIT << con)
 

Definition at line 99 of file ipmi_debug.h.

Referenced by debug(), and debug_cmd().

#define DEBUG_CON_FAIL_ENABLE con   )     __ipmi_log_mask |= (DEBUG_CON0_FAIL_BIT << con)
 

Definition at line 97 of file ipmi_debug.h.

Referenced by debug(), and debug_cmd().

#define DEBUG_EVENTS   (__ipmi_log_mask & DEBUG_EVENTS_BIT)
 

Definition at line 92 of file ipmi_debug.h.

Referenced by _ipmi_domain_system_event_handler().

#define DEBUG_EVENTS_BIT   (1 << 3)
 

Definition at line 74 of file ipmi_debug.h.

 
#define DEBUG_EVENTS_DISABLE  )     __ipmi_log_mask &= ~DEBUG_EVENTS_BIT
 

Definition at line 94 of file ipmi_debug.h.

Referenced by debug(), and debug_cmd().

 
#define DEBUG_EVENTS_ENABLE  )     __ipmi_log_mask |= DEBUG_EVENTS_BIT
 

Definition at line 93 of file ipmi_debug.h.

Referenced by debug(), and debug_cmd().

#define DEBUG_LOCKS   (__ipmi_debug_locks)
 

Definition at line 115 of file ipmi_debug.h.

Referenced by __ipmi_check_mc_lock().

 
#define DEBUG_LOCKS_DISABLE  )     __ipmi_debug_locks = 0
 

Definition at line 117 of file ipmi_debug.h.

Referenced by debug(), and debug_cmd().

 
#define DEBUG_LOCKS_ENABLE  )     __ipmi_debug_locks = 1
 

Definition at line 116 of file ipmi_debug.h.

Referenced by debug(), debug_cmd(), and main().

#define DEBUG_MSG   (__ipmi_log_mask & DEBUG_MSG_BIT)
 

Definition at line 84 of file ipmi_debug.h.

Referenced by handle_msg_send(), ipmi_handle_recv(), and ipmi_handle_recv_async().

#define DEBUG_MSG_BIT   (1 << 0)
 

Definition at line 68 of file ipmi_debug.h.

 
#define DEBUG_MSG_DISABLE  )     __ipmi_log_mask &= ~DEBUG_MSG_BIT
 

Definition at line 86 of file ipmi_debug.h.

Referenced by debug(), and debug_cmd().

 
#define DEBUG_MSG_ENABLE  )     __ipmi_log_mask |= DEBUG_MSG_BIT
 

Definition at line 85 of file ipmi_debug.h.

Referenced by debug(), debug_cmd(), and main().

#define DEBUG_MSG_ERR   (__ipmi_log_mask & DEBUG_MSG_ERR_BIT)
 

Definition at line 102 of file ipmi_debug.h.

Referenced by check_session_seq_num(), data_handler(), handle_lan15_recv(), handle_payload(), handle_rakp2(), handle_rmcpp_recv(), ipmi_get_recv_seq(), ipmi_handle_recv(), ipmi_handle_recv_async(), lan_addr_same(), open_get_recv_seq(), rmcp_find_ipmi(), rmcpp_find_ipmi(), and rsp_timeout_handler().

#define DEBUG_MSG_ERR_BIT   (1 << 8)
 

Definition at line 82 of file ipmi_debug.h.

 
#define DEBUG_MSG_ERR_DISABLE  )     __ipmi_log_mask &= ~DEBUG_MSG_ERR_BIT
 

Definition at line 104 of file ipmi_debug.h.

Referenced by debug().

 
#define DEBUG_MSG_ERR_ENABLE  )     __ipmi_log_mask |= DEBUG_MSG_ERR_BIT
 

Definition at line 103 of file ipmi_debug.h.

Referenced by debug(), and main().

#define DEBUG_RAWMSG   (__ipmi_log_mask & DEBUG_RAWMSG_BIT)
 

Definition at line 88 of file ipmi_debug.h.

Referenced by check_session_seq_num(), data_handler(), handle_lan15_recv(), handle_payload(), handle_rakp2(), handle_rmcpp_recv(), ipmi_get_recv_seq(), ipmi_handle_recv(), ipmi_handle_recv_async(), ipmi_handle_snmp_trap_data(), lan_addr_same(), lan_send_addr(), open_get_recv_seq(), rmcp_find_ipmi(), rmcpp_find_ipmi(), and rsp_timeout_handler().

#define DEBUG_RAWMSG_BIT   (1 << 1)
 

Definition at line 71 of file ipmi_debug.h.

 
#define DEBUG_RAWMSG_DISABLE  )     __ipmi_log_mask &= ~DEBUG_RAWMSG_BIT
 

Definition at line 90 of file ipmi_debug.h.

Referenced by debug(), and debug_cmd().

 
#define DEBUG_RAWMSG_ENABLE  )     __ipmi_log_mask |= DEBUG_RAWMSG_BIT
 

Definition at line 89 of file ipmi_debug.h.

Referenced by debug(), debug_cmd(), and main().

#define IPMI_REPORT_LOCK_ERROR handler,
str   )     do {} while (0)
 

Definition at line 111 of file ipmi_debug.h.


Variable Documentation

int __ipmi_debug_locks
 

Definition at line 70 of file locks.c.

unsigned int __ipmi_log_mask
 

Definition at line 71 of file ipmi.c.


© sourcejam.com 2005-2008