FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
trace.h File Reference
+ Include dependency graph for trace.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  vlib_trace_header_t
 
struct  vlib_trace_node_t
 
struct  vlib_trace_main_t
 

Macros

#define FILTER_FLAG_NONE   0
 
#define FILTER_FLAG_INCLUDE   1
 
#define FILTER_FLAG_EXCLUDE   2
 
#define FILTER_FLAG_POST_MORTEM   3
 

Typedefs

typedef void() vlib_trace_buffer_callback_t(struct vlib_main_t *, struct vlib_trace_main_t *)
 
typedef void *() vlib_add_trace_callback_t(struct vlib_main_t *, struct vlib_node_runtime_t *r, struct vlib_buffer_t *b, u32 n_data_bytes)
 

Functions

void trace_apply_filter (struct vlib_main_t *vm)
 
int trace_time_cmp (void *a1, void *a2)
 
void vlib_trace_stop_and_clear (void)
 
int vlib_enable_disable_pkt_trace_filter (int enable)
 Enable / disable packet trace filter. More...
 
void trace_update_capture_options (u32 add, u32 node_index, u32 filter, u8 verbose)
 
void trace_filter_set (u32 node_index, u32 flag, u32 count)
 
void clear_trace_buffer (void)
 

Variables

format_function_t format_vlib_trace
 

Macro Definition Documentation

◆ FILTER_FLAG_EXCLUDE

#define FILTER_FLAG_EXCLUDE   2

Definition at line 93 of file trace.h.

◆ FILTER_FLAG_INCLUDE

#define FILTER_FLAG_INCLUDE   1

Definition at line 92 of file trace.h.

◆ FILTER_FLAG_NONE

#define FILTER_FLAG_NONE   0

Definition at line 91 of file trace.h.

◆ FILTER_FLAG_POST_MORTEM

#define FILTER_FLAG_POST_MORTEM   3

Definition at line 94 of file trace.h.

Typedef Documentation

◆ vlib_add_trace_callback_t

typedef void*() vlib_add_trace_callback_t(struct vlib_main_t *, struct vlib_node_runtime_t *r, struct vlib_buffer_t *b, u32 n_data_bytes)

Definition at line 78 of file trace.h.

◆ vlib_trace_buffer_callback_t

typedef void() vlib_trace_buffer_callback_t(struct vlib_main_t *, struct vlib_trace_main_t *)

Definition at line 72 of file trace.h.

Function Documentation

◆ clear_trace_buffer()

void clear_trace_buffer ( void  )

Definition at line 115 of file trace.c.

+ Here is the caller graph for this function:

◆ trace_apply_filter()

void trace_apply_filter ( struct vlib_main_t vm)

Definition at line 240 of file trace.c.

◆ trace_filter_set()

void trace_filter_set ( u32  node_index,
u32  flag,
u32  count 
)

Definition at line 528 of file trace.c.

+ Here is the caller graph for this function:

◆ trace_time_cmp()

int trace_time_cmp ( void *  a1,
void *  a2 
)

Definition at line 184 of file trace.c.

+ Here is the caller graph for this function:

◆ trace_update_capture_options()

void trace_update_capture_options ( u32  add,
u32  node_index,
u32  filter,
u8  verbose 
)

Definition at line 385 of file trace.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vlib_enable_disable_pkt_trace_filter()

int vlib_enable_disable_pkt_trace_filter ( int  enable)

Enable / disable packet trace filter.

Definition at line 2021 of file vnet_classify.c.

+ Here is the caller graph for this function:

◆ vlib_trace_stop_and_clear()

void vlib_trace_stop_and_clear ( void  )

Definition at line 377 of file trace.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ format_vlib_trace

format_function_t format_vlib_trace

Definition at line 114 of file trace.h.