FD.io VPP  v18.07-rc0-415-g6c78436
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

#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; \
{ \
.format = "(%02d) " acl_elog_trace_format_label, \
.format_args = "i2" acl_elog_trace_format_args, \
}; \
CLIB_PACKED(struct \
{ \
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:1644
#define CLIB_UNUSED(x)
Definition: clib.h:79
unsigned char u8
Definition: types.h:56
pthread_t thread[MAX_CONNS]
Definition: main.c:125
vlib_worker_thread_t * vlib_worker_threads
Definition: threads.c:35
unsigned short u16
Definition: types.h:57
#define ELOG_TYPE_DECLARE(f)
Definition: elog.h:439
#define ELOG_TRACK_DATA(em, f, track)
Definition: elog.h:475
static_always_inline uword os_get_thread_index(void)
Definition: os.h:62
static void elog_track(elog_main_t *em, elog_event_type_t *type, elog_track_t *track, u32 data)
Log a single-datum event to a specific track, non-inline version.
Definition: elog.h:395
#define CLIB_PACKED(x)
Definition: clib.h:78

Definition at line 22 of file elog_acl_trace.h.

#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; \
{ \
.format = "(%02d) " acl_elog_trace_format_label, \
.format_args = "i2" acl_elog_trace_format_args, \
}; \
CLIB_PACKED(struct \
{ \
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:1644
#define CLIB_UNUSED(x)
Definition: clib.h:79
unsigned char u8
Definition: types.h:56
pthread_t thread[MAX_CONNS]
Definition: main.c:125
vlib_worker_thread_t * vlib_worker_threads
Definition: threads.c:35
unsigned short u16
Definition: types.h:57
#define ELOG_TYPE_DECLARE(f)
Definition: elog.h:439
#define ELOG_TRACK_DATA(em, f, track)
Definition: elog.h:475
static_always_inline uword os_get_thread_index(void)
Definition: os.h:62
static void elog_track(elog_main_t *em, elog_event_type_t *type, elog_track_t *track, u32 data)
Log a single-datum event to a specific track, non-inline version.
Definition: elog.h:395
#define CLIB_PACKED(x)
Definition: clib.h:78

Definition at line 47 of file elog_acl_trace.h.

#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; \
{ \
.format = "(%02d) " acl_elog_trace_format_label, \
.format_args = "i2" acl_elog_trace_format_args, \
}; \
CLIB_PACKED(struct \
{ \
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:1644
#define CLIB_UNUSED(x)
Definition: clib.h:79
unsigned char u8
Definition: types.h:56
pthread_t thread[MAX_CONNS]
Definition: main.c:125
vlib_worker_thread_t * vlib_worker_threads
Definition: threads.c:35
unsigned short u16
Definition: types.h:57
#define ELOG_TYPE_DECLARE(f)
Definition: elog.h:439
#define ELOG_TRACK_DATA(em, f, track)
Definition: elog.h:475
static_always_inline uword os_get_thread_index(void)
Definition: os.h:62
static void elog_track(elog_main_t *em, elog_event_type_t *type, elog_track_t *track, u32 data)
Log a single-datum event to a specific track, non-inline version.
Definition: elog.h:395
#define CLIB_PACKED(x)
Definition: clib.h:78

Definition at line 75 of file elog_acl_trace.h.

#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; \
{ \
.format = "(%02d) " acl_elog_trace_format_label, \
.format_args = "i2" acl_elog_trace_format_args, \
}; \
CLIB_PACKED(struct \
{ \
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:1644
#define CLIB_UNUSED(x)
Definition: clib.h:79
unsigned char u8
Definition: types.h:56
pthread_t thread[MAX_CONNS]
Definition: main.c:125
vlib_worker_thread_t * vlib_worker_threads
Definition: threads.c:35
unsigned short u16
Definition: types.h:57
#define ELOG_TYPE_DECLARE(f)
Definition: elog.h:439
#define ELOG_TRACK_DATA(em, f, track)
Definition: elog.h:475
static_always_inline uword os_get_thread_index(void)
Definition: os.h:62
static void elog_track(elog_main_t *em, elog_event_type_t *type, elog_track_t *track, u32 data)
Log a single-datum event to a specific track, non-inline version.
Definition: elog.h:395
#define CLIB_PACKED(x)
Definition: clib.h:78

Definition at line 106 of file elog_acl_trace.h.