FD.io VPP  v19.04.4-rc0-5-ge88582fac
Vector Packet Processing
elog_acl_trace.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define elog_acl_cond_trace_X1(am, trace_cond, acl_elog_trace_format_label, acl_elog_trace_format_args, acl_elog_val1)
 
#define elog_acl_cond_trace_X2(am, trace_cond, acl_elog_trace_format_label, acl_elog_trace_format_args, acl_elog_val1, acl_elog_val2)
 
#define elog_acl_cond_trace_X3(am, trace_cond, acl_elog_trace_format_label, acl_elog_trace_format_args, acl_elog_val1, acl_elog_val2, acl_elog_val3)
 
#define elog_acl_cond_trace_X4(am, trace_cond, acl_elog_trace_format_label, acl_elog_trace_format_args, acl_elog_val1, acl_elog_val2, acl_elog_val3, acl_elog_val4)
 

Macro Definition Documentation

◆ elog_acl_cond_trace_X1

#define elog_acl_cond_trace_X1 (   am,
  trace_cond,
  acl_elog_trace_format_label,
  acl_elog_trace_format_args,
  acl_elog_val1 
)
Value:
do { \
if (trace_cond) { \
CLIB_UNUSED(struct { u8 available_space[18 - sizeof(acl_elog_val1)]; } *static_check); \
u16 thread_index = os_get_thread_index (); \
vlib_worker_thread_t * w = vlib_worker_threads + thread_index; \
ELOG_TYPE_DECLARE (e) = \
{ \
.format = "(%02d) " acl_elog_trace_format_label, \
.format_args = "i2" acl_elog_trace_format_args, \
}; \
CLIB_PACKED(struct \
{ \
u16 thread; \
typeof(acl_elog_val1) val1; \
}) *ed; \
ed = ELOG_TRACK_DATA (&vlib_global_main.elog_main, e, w->elog_track); \
ed->thread = thread_index; \
ed->val1 = acl_elog_val1; \
} \
} while (0)
vlib_main_t vlib_global_main
Definition: main.c:1924
unsigned char u8
Definition: types.h:56
pthread_t thread[MAX_CONNS]
Definition: main.c:142
vlib_worker_thread_t * vlib_worker_threads
Definition: threads.c:36
elog_main_t elog_main
Definition: main.h:172
#define ELOG_TRACK_DATA(em, f, track)
Definition: elog.h:478
static_always_inline uword os_get_thread_index(void)
Definition: os.h:62

Definition at line 22 of file elog_acl_trace.h.

◆ elog_acl_cond_trace_X2

#define elog_acl_cond_trace_X2 (   am,
  trace_cond,
  acl_elog_trace_format_label,
  acl_elog_trace_format_args,
  acl_elog_val1,
  acl_elog_val2 
)
Value:
do { \
if (trace_cond) { \
CLIB_UNUSED(struct { u8 available_space[18 - sizeof(acl_elog_val1) - sizeof(acl_elog_val2)]; } *static_check); \
u16 thread_index = os_get_thread_index (); \
vlib_worker_thread_t * w = vlib_worker_threads + thread_index; \
ELOG_TYPE_DECLARE (e) = \
{ \
.format = "(%02d) " acl_elog_trace_format_label, \
.format_args = "i2" acl_elog_trace_format_args, \
}; \
CLIB_PACKED(struct \
{ \
u16 thread; \
typeof(acl_elog_val1) val1; \
typeof(acl_elog_val2) val2; \
}) *ed; \
ed = ELOG_TRACK_DATA (&vlib_global_main.elog_main, e, w->elog_track); \
ed->thread = thread_index; \
ed->val1 = acl_elog_val1; \
ed->val2 = acl_elog_val2; \
} \
} while (0)
vlib_main_t vlib_global_main
Definition: main.c:1924
unsigned char u8
Definition: types.h:56
pthread_t thread[MAX_CONNS]
Definition: main.c:142
vlib_worker_thread_t * vlib_worker_threads
Definition: threads.c:36
elog_main_t elog_main
Definition: main.h:172
#define ELOG_TRACK_DATA(em, f, track)
Definition: elog.h:478
static_always_inline uword os_get_thread_index(void)
Definition: os.h:62

Definition at line 47 of file elog_acl_trace.h.

◆ elog_acl_cond_trace_X3

#define elog_acl_cond_trace_X3 (   am,
  trace_cond,
  acl_elog_trace_format_label,
  acl_elog_trace_format_args,
  acl_elog_val1,
  acl_elog_val2,
  acl_elog_val3 
)
Value:
do { \
if (trace_cond) { \
CLIB_UNUSED(struct { u8 available_space[18 - sizeof(acl_elog_val1) - sizeof(acl_elog_val2) \
- sizeof(acl_elog_val3)]; } *static_check); \
u16 thread_index = os_get_thread_index (); \
vlib_worker_thread_t * w = vlib_worker_threads + thread_index; \
ELOG_TYPE_DECLARE (e) = \
{ \
.format = "(%02d) " acl_elog_trace_format_label, \
.format_args = "i2" acl_elog_trace_format_args, \
}; \
CLIB_PACKED(struct \
{ \
u16 thread; \
typeof(acl_elog_val1) val1; \
typeof(acl_elog_val2) val2; \
typeof(acl_elog_val3) val3; \
}) *ed; \
ed = ELOG_TRACK_DATA (&vlib_global_main.elog_main, e, w->elog_track); \
ed->thread = thread_index; \
ed->val1 = acl_elog_val1; \
ed->val2 = acl_elog_val2; \
ed->val3 = acl_elog_val3; \
} \
} while (0)
vlib_main_t vlib_global_main
Definition: main.c:1924
unsigned char u8
Definition: types.h:56
pthread_t thread[MAX_CONNS]
Definition: main.c:142
vlib_worker_thread_t * vlib_worker_threads
Definition: threads.c:36
elog_main_t elog_main
Definition: main.h:172
#define ELOG_TRACK_DATA(em, f, track)
Definition: elog.h:478
static_always_inline uword os_get_thread_index(void)
Definition: os.h:62

Definition at line 75 of file elog_acl_trace.h.

◆ elog_acl_cond_trace_X4

#define elog_acl_cond_trace_X4 (   am,
  trace_cond,
  acl_elog_trace_format_label,
  acl_elog_trace_format_args,
  acl_elog_val1,
  acl_elog_val2,
  acl_elog_val3,
  acl_elog_val4 
)
Value:
do { \
if (trace_cond) { \
CLIB_UNUSED(struct { u8 available_space[18 - sizeof(acl_elog_val1) - sizeof(acl_elog_val2) \
- sizeof(acl_elog_val3) -sizeof(acl_elog_val4)]; } *static_check); \
u16 thread_index = os_get_thread_index (); \
vlib_worker_thread_t * w = vlib_worker_threads + thread_index; \
ELOG_TYPE_DECLARE (e) = \
{ \
.format = "(%02d) " acl_elog_trace_format_label, \
.format_args = "i2" acl_elog_trace_format_args, \
}; \
CLIB_PACKED(struct \
{ \
u16 thread; \
typeof(acl_elog_val1) val1; \
typeof(acl_elog_val2) val2; \
typeof(acl_elog_val3) val3; \
typeof(acl_elog_val4) val4; \
}) *ed; \
ed = ELOG_TRACK_DATA (&vlib_global_main.elog_main, e, w->elog_track); \
ed->thread = thread_index; \
ed->val1 = acl_elog_val1; \
ed->val2 = acl_elog_val2; \
ed->val3 = acl_elog_val3; \
ed->val4 = acl_elog_val4; \
} \
} while (0)
vlib_main_t vlib_global_main
Definition: main.c:1924
unsigned char u8
Definition: types.h:56
pthread_t thread[MAX_CONNS]
Definition: main.c:142
vlib_worker_thread_t * vlib_worker_threads
Definition: threads.c:36
elog_main_t elog_main
Definition: main.h:172
#define ELOG_TRACK_DATA(em, f, track)
Definition: elog.h:478
static_always_inline uword os_get_thread_index(void)
Definition: os.h:62

Definition at line 106 of file elog_acl_trace.h.