45 #define vl_print(handle, ...) vlib_cli_output (handle, __VA_ARGS__) 51 #define vl_api_version(n,v) static u32 api_version=(v); 57 #define foreach_trace_plugin_api_msg \ 58 _(TRACE_PROFILE_ADD, trace_profile_add) \ 59 _(TRACE_PROFILE_DEL, trace_profile_del) \ 60 _(TRACE_PROFILE_SHOW_CONFIG, trace_profile_show_config) 66 vl_api_trace_profile_add_reply_t *rmp;
92 vl_api_trace_profile_del_reply_t *rmp;
131 vl_msg_api_set_handlers((VL_API_##N + sm->msg_id_base), \ 133 vl_api_##n##_t_handler, \ 135 vl_api_##n##_t_endian, \ 136 vl_api_##n##_t_print, \ 137 sizeof(vl_api_##n##_t), 1); 144 #define vl_msg_name_crc_list 146 #undef vl_msg_name_crc_list 151 #define _(id,n,crc) \ 152 vl_msg_api_add_msg_name_crc (am, #n "_" #crc, id + sm->msg_id_base); 153 foreach_vl_msg_name_crc_trace;
170 name =
format (0,
"ioam_trace_%08x%c", api_version, 0);
static void vl_api_trace_profile_show_config_t_handler(vl_api_trace_profile_show_config_t *mp)
vnet_main_t * vnet_get_main(void)
#define REPLY_MACRO2(t, body)
static clib_error_t * trace_plugin_api_hookup(vlib_main_t *vm)
static trace_profile * trace_profile_find(void)
#define VLIB_INIT_FUNCTION(x)
void clear_trace_profiles(void)
iOAM6 Trace - Set the iOAM6 trace profile
API main structure, used by both vpp and binary API clients.
#define vec_free(V)
Free vector's memory (no header).
Show trace config response.
static void vl_api_trace_profile_del_t_handler(vl_api_trace_profile_del_t *mp)
static void setup_message_id_table(trace_main_t *sm, api_main_t *am)
#define foreach_trace_plugin_api_msg
static void vl_api_trace_profile_add_t_handler(vl_api_trace_profile_add_t *mp)
int trace_util_init(void)
static clib_error_t * trace_init(vlib_main_t *vm)
int trace_profile_create(trace_profile *profile, u8 trace_type, u8 num_elts, u32 trace_tsp, u32 node_id, u32 app_data)
u16 vl_msg_api_get_msg_ids(const char *name, int n)