FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
session_debug.h File Reference
+ Include dependency graph for session_debug.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  session_dbg_counter_
 
struct  session_dbg_evts_t
 
struct  session_dbg_main_
 

Macros

#define foreach_session_dbg_evt
 
#define foreach_session_events
 
#define SESSION_DEBUG   0 * (TRANSPORT_DEBUG > 0)
 
#define SESSION_DEQ_EVTS   (0)
 
#define SESSION_DISPATCH_DBG   (0)
 
#define SESSION_EVT_POLL_DBG   (0)
 
#define SESSION_SM   (0)
 
#define SESSION_CLOCKS_EVT_DBG   (0)
 
#define SESSION_COUNTS_EVT_DBG   (0)
 
#define SESSION_EVT(_evt, _args...)
 
#define SESSION_DBG(_fmt, _args...)
 

Typedefs

typedef enum _session_evt_dbg session_evt_dbg_e
 
typedef struct session_dbg_counter_ session_dbg_counter_t
 
typedef struct session_dbg_evts_t session_dbg_evts_t
 
typedef struct session_dbg_main_ session_dbg_main_t
 

Enumerations

enum  sess_q_node_events_types_t { SESS_Q_MAX_EVT_TYPES }
 

Functions

void session_debug_init (void)
 

Variables

session_dbg_main_t session_dbg_main
 

Macro Definition Documentation

◆ foreach_session_dbg_evt

#define foreach_session_dbg_evt
Value:
_(ENQ, "enqueue") \
_(DEQ, "dequeue") \
_(DEQ_NODE, "dequeue") \
_(POLL_GAP_TRACK, "poll gap track") \
_(POLL_DISPATCH_TIME, "dispatch time") \
_(DISPATCH_START, "dispatch start") \
_(DISPATCH_END, "dispatch end") \
_(FREE, "session free") \
_(DSP_CNTRS, "dispatch counters") \
_(IO_EVT_COUNTS, "io evt counts") \
_(EVT_COUNTS, "ctrl evt counts") \

Definition at line 21 of file session_debug.h.

◆ foreach_session_events

#define foreach_session_events
Value:
_(CLK_UPDATE_TIME, 1, 1, "Time Update Time") \
_(CLK_MQ_DEQ, 1, 1, "Time MQ Dequeue") \
_(CLK_CTRL_EVTS, 1, 1, "Time Ctrl Events") \
_(CLK_NEW_IO_EVTS, 1, 1, "Time New IO Events") \
_(CLK_OLD_IO_EVTS, 1, 1, "Time Old IO Events") \
_(CLK_TOTAL, 1, 1, "Time Total in Node") \
_(CLK_START, 1, 1, "Time Since Last Reset") \
\
_(CNT_MQ_EVTS, 1, 0, "# of MQ Events Processed" ) \
_(CNT_CTRL_EVTS, 1, 0, "# of Ctrl Events Processed" ) \
_(CNT_NEW_EVTS, 1, 0, "# of New Events Processed" ) \
_(CNT_OLD_EVTS, 1, 0, "# of Old Events Processed" ) \
_(CNT_IO_EVTS, 1, 0, "# of Events Processed" ) \
_(CNT_NODE_CALL, 1, 0, "# of Node Calls") \
\
_(BASE_OFFSET_IO_EVTS, 0, 0, "NULL") \
_(SESSION_IO_EVT_RX, 1, 0, "# of IO Event RX") \
_(SESSION_IO_EVT_TX, 1, 0, "# of IO Event TX") \
_(SESSION_IO_EVT_TX_FLUSH, 1, 0, "# of IO Event TX Flush") \
_(SESSION_IO_EVT_BUILTIN_RX, 1, 0, "# of IO Event BuiltIn RX") \
_(SESSION_IO_EVT_BUILTIN_TX, 1, 0, "# of IO Event BuiltIn TX") \

Definition at line 41 of file session_debug.h.

◆ SESSION_CLOCKS_EVT_DBG

#define SESSION_CLOCKS_EVT_DBG   (0)

Definition at line 102 of file session_debug.h.

◆ SESSION_COUNTS_EVT_DBG

#define SESSION_COUNTS_EVT_DBG   (0)

Definition at line 103 of file session_debug.h.

◆ SESSION_DBG

#define SESSION_DBG (   _fmt,
  _args... 
)

Definition at line 329 of file session_debug.h.

◆ SESSION_DEBUG

#define SESSION_DEBUG   0 * (TRANSPORT_DEBUG > 0)

Definition at line 97 of file session_debug.h.

◆ SESSION_DEQ_EVTS

#define SESSION_DEQ_EVTS   (0)

Definition at line 98 of file session_debug.h.

◆ SESSION_DISPATCH_DBG

#define SESSION_DISPATCH_DBG   (0)

Definition at line 99 of file session_debug.h.

◆ SESSION_EVT

#define SESSION_EVT (   _evt,
  _args... 
)

Definition at line 328 of file session_debug.h.

◆ SESSION_EVT_POLL_DBG

#define SESSION_EVT_POLL_DBG   (0)

Definition at line 100 of file session_debug.h.

◆ SESSION_SM

#define SESSION_SM   (0)

Definition at line 101 of file session_debug.h.

Typedef Documentation

◆ session_dbg_counter_t

◆ session_dbg_evts_t

◆ session_dbg_main_t

◆ session_evt_dbg_e

typedef enum _session_evt_dbg session_evt_dbg_e

Enumeration Type Documentation

◆ sess_q_node_events_types_t

Enumerator
SESS_Q_MAX_EVT_TYPES 

Definition at line 64 of file session_debug.h.

Function Documentation

◆ session_debug_init()

void session_debug_init ( void  )

Definition at line 115 of file session_debug.c.

+ Here is the caller graph for this function:

Variable Documentation

◆ session_dbg_main

session_dbg_main_t session_dbg_main
SESSION_IO_EVT_RX
@ SESSION_IO_EVT_RX
Definition: session_types.h:328
SESSION_IO_EVT_BUILTIN_TX
@ SESSION_IO_EVT_BUILTIN_TX
Definition: session_types.h:332
SESSION_IO_EVT_BUILTIN_RX
@ SESSION_IO_EVT_BUILTIN_RX
Definition: session_types.h:331
SESSION_IO_EVT_TX_FLUSH
@ SESSION_IO_EVT_TX_FLUSH
Definition: session_types.h:330
SESSION_IO_EVT_TX
@ SESSION_IO_EVT_TX
Definition: session_types.h:329