FD.io VPP  v18.10-34-gcce845e
Vector Packet Processing
trace_api.c File Reference
+ Include dependency graph for trace_api.c:

Go to the source code of this file.

Macros

#define vl_typedefs
 
#define vl_endianfun
 
#define vl_print(handle, ...)   vlib_cli_output (handle, __VA_ARGS__)
 
#define vl_printfun
 
#define vl_api_version(n, v)   static u32 api_version=(v);
 
#define TRACE_REPLY_MACRO(t)
 
#define TRACE_REPLY_MACRO2(t, body)
 
#define foreach_trace_plugin_api_msg
 
#define vl_msg_name_crc_list
 

Functions

static void vl_api_trace_profile_add_t_handler (vl_api_trace_profile_add_t *mp)
 
static void vl_api_trace_profile_del_t_handler (vl_api_trace_profile_del_t *mp)
 
static void vl_api_trace_profile_show_config_t_handler (vl_api_trace_profile_show_config_t *mp)
 
static clib_error_ttrace_plugin_api_hookup (vlib_main_t *vm)
 
static void setup_message_id_table (trace_main_t *sm, api_main_t *am)
 
static clib_error_ttrace_init (vlib_main_t *vm)
 

Macro Definition Documentation

#define foreach_trace_plugin_api_msg
Value:
_(TRACE_PROFILE_ADD, trace_profile_add) \
_(TRACE_PROFILE_DEL, trace_profile_del) \
_(TRACE_PROFILE_SHOW_CONFIG, trace_profile_show_config)

Definition at line 98 of file trace_api.c.

#define TRACE_REPLY_MACRO (   t)
Value:
do { \
if (!q) \
return; \
\
rmp = vl_msg_api_alloc (sizeof (*rmp)); \
rmp->_vl_msg_id = ntohs((t)+sm->msg_id_base); \
rmp->context = mp->context; \
rmp->retval = ntohl(rv); \
vl_msg_api_send_shmem (q, (u8 *)&rmp); \
} while(0);
void * vl_msg_api_alloc(int nbytes)
unsigned char u8
Definition: types.h:56
void vl_msg_api_send_shmem(svm_queue_t *q, u8 *elem)
svm_queue_t * vl_api_client_index_to_input_queue(u32 index)
Definition: memory_api.c:759
struct _svm_queue svm_queue_t

Definition at line 63 of file trace_api.c.

#define TRACE_REPLY_MACRO2 (   t,
  body 
)
Value:
do { \
rv = vl_msg_api_pd_handler (mp, rv); \
q = vl_api_client_index_to_input_queue (mp->client_index); \
if (!q) \
return; \
\
rmp = vl_msg_api_alloc (sizeof (*rmp)); \
rmp->_vl_msg_id = ntohs((t)+sm->msg_id_base); \
rmp->context = mp->context; \
rmp->retval = ntohl(rv); \
do {body;} while (0); \
vl_msg_api_send_shmem (q, (u8 *)&rmp); \
} while(0);
int vl_msg_api_pd_handler(void *mp, int rv)
Definition: api_shared.c:836
void * vl_msg_api_alloc(int nbytes)
unsigned char u8
Definition: types.h:56
void vl_msg_api_send_shmem(svm_queue_t *q, u8 *elem)
svm_queue_t * vl_api_client_index_to_input_queue(u32 index)
Definition: memory_api.c:759
struct _svm_queue svm_queue_t

Definition at line 79 of file trace_api.c.

#define vl_api_version (   n,
  v 
)    static u32 api_version=(v);

Definition at line 51 of file trace_api.c.

#define vl_endianfun

Definition at line 40 of file trace_api.c.

#define vl_msg_name_crc_list

Definition at line 188 of file trace_api.c.

#define vl_print (   handle,
  ... 
)    vlib_cli_output (handle, __VA_ARGS__)

Definition at line 45 of file trace_api.c.

#define vl_printfun

Definition at line 46 of file trace_api.c.

#define vl_typedefs

Definition at line 35 of file trace_api.c.

Function Documentation

static void setup_message_id_table ( trace_main_t sm,
api_main_t am 
)
static

Definition at line 193 of file trace_api.c.

+ Here is the caller graph for this function:

static clib_error_t* trace_init ( vlib_main_t vm)
static

Definition at line 202 of file trace_api.c.

+ Here is the call graph for this function:

static clib_error_t* trace_plugin_api_hookup ( vlib_main_t vm)
static

Definition at line 171 of file trace_api.c.

+ Here is the caller graph for this function:

static void vl_api_trace_profile_add_t_handler ( vl_api_trace_profile_add_t mp)
static

Definition at line 104 of file trace_api.c.

+ Here is the call graph for this function:

static void vl_api_trace_profile_del_t_handler ( vl_api_trace_profile_del_t mp)
static

Definition at line 131 of file trace_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_trace_profile_show_config_t_handler ( vl_api_trace_profile_show_config_t mp)
static

Definition at line 143 of file trace_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: