FD.io VPP  v18.01.1-37-g7ea3975
Vector Packet Processing
memory_vlib.c File Reference

Binary API messaging via shared memory Low-level, primary provisioning interface. More...

+ Include dependency graph for memory_vlib.c:

Go to the source code of this file.

Data Structures

struct  msg_table_unserialize_t
 

Macros

#define TRACE_VLIB_MEMORY_QUEUE   0
 
#define vl_typedefs   /* define message structures */
 
#define vl_print(handle, ...)   vlib_cli_output (handle, __VA_ARGS__)
 
#define vl_printfun
 
#define vl_endianfun
 
#define foreach_vlib_api_msg
 
#define foreach_histogram_bucket
 
#define foreach_rpc_api_msg
 
#define foreach_plugin_trace_msg   _(TRACE_PLUGIN_MSG_IDS,trace_plugin_msg_ids)
 

Enumerations

enum  histogram_index_t { SLEEP_N_BUCKETS }
 
enum  vl_api_replay_t { DUMP, CUSTOM_DUMP, REPLAY, INITIALIZERS }
 

Functions

static void * vl_api_memclnt_create_t_print (vl_api_memclnt_create_t *a, void *handle)
 
static void * vl_api_memclnt_delete_t_print (vl_api_memclnt_delete_t *a, void *handle)
 
static void * vl_api_trace_plugin_msg_ids_t_print (vl_api_trace_plugin_msg_ids_t *a, void *handle)
 
void vl_socket_api_send (vl_api_registration_t *rp, u8 *elem)
 
void vl_msg_api_send (vl_api_registration_t *rp, u8 *elem)
 
u8vl_api_serialize_message_table (api_main_t *am, u8 *vector)
 
u32 vl_api_memclnt_create_internal (char *name, unix_shared_memory_queue_t *q)
 
void vl_api_memclnt_create_t_handler (vl_api_memclnt_create_t *mp)
 
static int call_reaper_functions (u32 client_index)
 
void vl_api_memclnt_delete_t_handler (vl_api_memclnt_delete_t *mp)
 
void vl_api_get_first_msg_id_t_handler (vl_api_get_first_msg_id_t *mp)
 
void vl_api_memclnt_keepalive_reply_t_handler (vl_api_memclnt_keepalive_reply_t *mp)
 client answered a ping, stave off the grim reaper... More...
 
static void vl_api_memclnt_keepalive_t_handler (vl_api_memclnt_keepalive_t *mp)
 We can send ourselves these messages if someone uses the builtin binary api test tool... More...
 
void vl_api_api_versions_t_handler (vl_api_api_versions_t *mp)
 
static int memory_api_init (const char *region_name)
 
static void memclnt_queue_callback (vlib_main_t *vm)
 
static void send_one_plugin_msg_ids_msg (u8 *name, u16 first_msg_id, u16 last_msg_id)
 
static void send_memclnt_keepalive (vl_api_registration_t *regp, f64 now)
 
static void dead_client_scan (api_main_t *am, vl_shmem_hdr_t *shm, f64 now)
 
static uword memclnt_process (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *f)
 
static clib_error_tvl_api_show_histogram_command (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cli_cmd)
 
static clib_error_tvl_api_clear_histogram_command (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cli_cmd)
 
void vl_enable_disable_memory_api (vlib_main_t *vm, int enable)
 
static uword api_rx_from_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static clib_error_tsetup_memclnt_exit (vlib_main_t *vm)
 
u8format_api_message_rings (u8 *s, va_list *args)
 
static clib_error_tvl_api_ring_command (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cli_cmd)
 
void dump_socket_clients (vlib_main_t *vm, api_main_t *am)
 
static clib_error_tvl_api_client_command (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cli_cmd)
 
static clib_error_tvl_api_status_command (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cli_cmd)
 
static clib_error_tvl_api_message_table_command (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cli_cmd)
 
static clib_error_tvl_api_trace_command (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cli_cmd)
 
clib_error_tvlibmemory_init (vlib_main_t *vm)
 
void vl_set_memory_region_name (const char *name)
 
static int range_compare (vl_api_msg_range_t *a0, vl_api_msg_range_t *a1)
 
static u8format_api_msg_range (u8 *s, va_list *args)
 
static clib_error_tvl_api_show_plugin_command (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cli_cmd)
 
static void vl_api_rpc_call_t_handler (vl_api_rpc_call_t *mp)
 
static void vl_api_rpc_call_reply_t_handler (vl_api_rpc_call_reply_t *mp)
 
void vl_api_send_pending_rpc_requests (vlib_main_t *vm)
 
static void vl_api_rpc_call_main_thread_inline (void *fp, u8 *data, u32 data_length, u8 force_rpc)
 
void vl_api_rpc_call_main_thread (void *fp, u8 *data, u32 data_length)
 
void vl_api_force_rpc_call_main_thread (void *fp, u8 *data, u32 data_length)
 
static void vl_api_trace_plugin_msg_ids_t_handler (vl_api_trace_plugin_msg_ids_t *mp)
 
static clib_error_trpc_api_hookup (vlib_main_t *vm)
 
 VLIB_API_INIT_FUNCTION (rpc_api_hookup)
 
u8format_vl_msg_api_trace_status (u8 *s, va_list *args)
 
void vl_msg_api_custom_dump_configure (api_main_t *am)
 
static void vl_msg_api_process_file (vlib_main_t *vm, u8 *filename, u32 first_index, u32 last_index, vl_api_replay_t which)
 
static clib_error_tapi_trace_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tapi_config_fn (vlib_main_t *vm, unformat_input_t *input)
 
static clib_error_tapi_queue_config_fn (vlib_main_t *vm, unformat_input_t *input)
 
static u8extract_name (u8 *s)
 
static u8extract_crc (u8 *s)
 
static int table_id_cmp (void *a1, void *a2)
 
static int table_name_and_crc_cmp (void *a1, void *a2)
 
static clib_error_tdump_api_table_file_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

static u64 vector_rate_histogram [SLEEP_N_BUCKETS]
 
vlib_node_registration_t memclnt_node
 (constructor) VLIB_REGISTER_NODE (memclnt_node) More...
 
static vlib_cli_command_t cli_show_api_histogram_command
 (constructor) VLIB_CLI_COMMAND (cli_show_api_histogram_command) More...
 
static vlib_cli_command_t cli_clear_api_histogram_command
 (constructor) VLIB_CLI_COMMAND (cli_clear_api_histogram_command) More...
 
volatile int ** vl_api_queue_cursizes
 
static vlib_node_registration_t api_rx_from_node_node
 (constructor) VLIB_REGISTER_NODE (api_rx_from_node_node) More...
 
static vlib_cli_command_t cli_show_api_command
 (constructor) VLIB_CLI_COMMAND (cli_show_api_command) More...
 
static vlib_cli_command_t cli_show_api_ring_command
 (constructor) VLIB_CLI_COMMAND (cli_show_api_ring_command) More...
 
static vlib_cli_command_t cli_show_api_clients_command
 (constructor) VLIB_CLI_COMMAND (cli_show_api_clients_command) More...
 
static vlib_cli_command_t cli_show_api_status_command
 (constructor) VLIB_CLI_COMMAND (cli_show_api_status_command) More...
 
static vlib_cli_command_t cli_show_api_message_table_command
 (constructor) VLIB_CLI_COMMAND (cli_show_api_message_table_command) More...
 
static vlib_cli_command_t trace
 (constructor) VLIB_CLI_COMMAND (trace) More...
 
static vlib_cli_command_t cli_show_api_plugin_command
 (constructor) VLIB_CLI_COMMAND (cli_show_api_plugin_command) More...
 
void * rpc_call_main_thread_cb_fn
 
static vlib_cli_command_t api_trace_command
 (constructor) VLIB_CLI_COMMAND (api_trace_command) More...
 
static vlib_cli_command_t dump_api_table_file
 (constructor) VLIB_CLI_COMMAND (dump_api_table_file) More...
 

Detailed Description

Binary API messaging via shared memory Low-level, primary provisioning interface.

Definition in file memory_vlib.c.

Macro Definition Documentation

#define foreach_histogram_bucket
Value:
_(400) \
_(200) \
_(100) \
_(10)

Definition at line 560 of file memory_vlib.c.

#define foreach_plugin_trace_msg   _(TRACE_PLUGIN_MSG_IDS,trace_plugin_msg_ids)

Definition at line 1972 of file memory_vlib.c.

#define foreach_rpc_api_msg
Value:
_(RPC_CALL,rpc_call) \
_(RPC_CALL_REPLY,rpc_call_reply)

Definition at line 1968 of file memory_vlib.c.

#define foreach_vlib_api_msg
Value:
_(MEMCLNT_CREATE, memclnt_create) \
_(MEMCLNT_DELETE, memclnt_delete) \
_(GET_FIRST_MSG_ID, get_first_msg_id) \
_(MEMCLNT_KEEPALIVE, memclnt_keepalive) \
_(MEMCLNT_KEEPALIVE_REPLY, memclnt_keepalive_reply) \
_(API_VERSIONS, api_versions)

Definition at line 510 of file memory_vlib.c.

#define TRACE_VLIB_MEMORY_QUEUE   0

Definition at line 49 of file memory_vlib.c.

#define vl_endianfun

Definition at line 95 of file memory_vlib.c.

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

Definition at line 58 of file memory_vlib.c.

#define vl_printfun

Definition at line 59 of file memory_vlib.c.

#define vl_typedefs   /* define message structures */

Definition at line 53 of file memory_vlib.c.

Enumeration Type Documentation

Enumerator
SLEEP_N_BUCKETS 

Definition at line 566 of file memory_vlib.c.

Enumerator
DUMP 
CUSTOM_DUMP 
REPLAY 
INITIALIZERS 

Definition at line 2018 of file memory_vlib.c.

Function Documentation

static clib_error_t* api_config_fn ( vlib_main_t vm,
unformat_input_t input 
)
static

Definition at line 2467 of file memory_vlib.c.

+ Here is the call graph for this function:

static clib_error_t* api_queue_config_fn ( vlib_main_t vm,
unformat_input_t input 
)
static

Definition at line 2502 of file memory_vlib.c.

+ Here is the call graph for this function:

static uword api_rx_from_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 1240 of file memory_vlib.c.

+ Here is the call graph for this function:

static clib_error_t* api_trace_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 2335 of file memory_vlib.c.

+ Here is the call graph for this function:

static int call_reaper_functions ( u32  client_index)
static

Definition at line 261 of file memory_vlib.c.

+ Here is the caller graph for this function:

static void dead_client_scan ( api_main_t am,
vl_shmem_hdr_t shm,
f64  now 
)
static

Definition at line 656 of file memory_vlib.c.

+ Here is the caller graph for this function:

static clib_error_t* dump_api_table_file_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 2589 of file memory_vlib.c.

+ Here is the call graph for this function:

void dump_socket_clients ( vlib_main_t vm,
api_main_t am 
)

Definition at line 1412 of file memory_vlib.c.

+ Here is the caller graph for this function:

static u8* extract_crc ( u8 s)
static

Definition at line 2543 of file memory_vlib.c.

+ Here is the caller graph for this function:

static u8* extract_name ( u8 s)
static

Definition at line 2528 of file memory_vlib.c.

+ Here is the caller graph for this function:

u8* format_api_message_rings ( u8 s,
va_list *  args 
)

Definition at line 1308 of file memory_vlib.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u8* format_api_msg_range ( u8 s,
va_list *  args 
)
static

Definition at line 1736 of file memory_vlib.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* format_vl_msg_api_trace_status ( u8 s,
va_list *  args 
)

Definition at line 2027 of file memory_vlib.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword memclnt_process ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t f 
)
static

Definition at line 801 of file memory_vlib.c.

+ Here is the call graph for this function:

static void memclnt_queue_callback ( vlib_main_t vm)
static

Definition at line 1186 of file memory_vlib.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int memory_api_init ( const char *  region_name)
static

Definition at line 522 of file memory_vlib.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int range_compare ( vl_api_msg_range_t a0,
vl_api_msg_range_t a1 
)
static

Definition at line 1725 of file memory_vlib.c.

+ Here is the caller graph for this function:

static clib_error_t* rpc_api_hookup ( vlib_main_t vm)
static

Definition at line 1987 of file memory_vlib.c.

+ Here is the call graph for this function:

static void send_memclnt_keepalive ( vl_api_registration_t regp,
f64  now 
)
static

Definition at line 604 of file memory_vlib.c.

+ Here is the call graph for this function:

static void send_one_plugin_msg_ids_msg ( u8 name,
u16  first_msg_id,
u16  last_msg_id 
)
static

Definition at line 582 of file memory_vlib.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* setup_memclnt_exit ( vlib_main_t vm)
static

Definition at line 1299 of file memory_vlib.c.

+ Here is the call graph for this function:

static int table_id_cmp ( void *  a1,
void *  a2 
)
static

Definition at line 2571 of file memory_vlib.c.

+ Here is the caller graph for this function:

static int table_name_and_crc_cmp ( void *  a1,
void *  a2 
)
static

Definition at line 2580 of file memory_vlib.c.

+ Here is the caller graph for this function:

void vl_api_api_versions_t_handler ( vl_api_api_versions_t mp)

Definition at line 476 of file memory_vlib.c.

+ Here is the call graph for this function:

static clib_error_t* vl_api_clear_histogram_command ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cli_cmd 
)
static

Definition at line 1160 of file memory_vlib.c.

static clib_error_t* vl_api_client_command ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cli_cmd 
)
static

Definition at line 1417 of file memory_vlib.c.

+ Here is the call graph for this function:

void vl_api_force_rpc_call_main_thread ( void *  fp,
u8 data,
u32  data_length 
)

Definition at line 1927 of file memory_vlib.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vl_api_get_first_msg_id_t_handler ( vl_api_get_first_msg_id_t mp)

Definition at line 394 of file memory_vlib.c.

+ Here is the call graph for this function:

u32 vl_api_memclnt_create_internal ( char *  name,
unix_shared_memory_queue_t q 
)

Definition at line 142 of file memory_vlib.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vl_api_memclnt_create_t_handler ( vl_api_memclnt_create_t mp)

Definition at line 181 of file memory_vlib.c.

+ Here is the call graph for this function:

static void* vl_api_memclnt_create_t_print ( vl_api_memclnt_create_t a,
void *  handle 
)
inlinestatic

Definition at line 64 of file memory_vlib.c.

void vl_api_memclnt_delete_t_handler ( vl_api_memclnt_delete_t mp)

Definition at line 281 of file memory_vlib.c.

+ Here is the call graph for this function:

static void* vl_api_memclnt_delete_t_print ( vl_api_memclnt_delete_t a,
void *  handle 
)
inlinestatic

Definition at line 75 of file memory_vlib.c.

void vl_api_memclnt_keepalive_reply_t_handler ( vl_api_memclnt_keepalive_reply_t *  mp)

client answered a ping, stave off the grim reaper...

Definition at line 439 of file memory_vlib.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_memclnt_keepalive_t_handler ( vl_api_memclnt_keepalive_t mp)
static

We can send ourselves these messages if someone uses the builtin binary api test tool...

Definition at line 459 of file memory_vlib.c.

+ Here is the call graph for this function:

static clib_error_t* vl_api_message_table_command ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cli_cmd 
)
static

Definition at line 1559 of file memory_vlib.c.

+ Here is the call graph for this function:

static clib_error_t* vl_api_ring_command ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cli_cmd 
)
static

Definition at line 1352 of file memory_vlib.c.

+ Here is the call graph for this function:

void vl_api_rpc_call_main_thread ( void *  fp,
u8 data,
u32  data_length 
)

Definition at line 1916 of file memory_vlib.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_rpc_call_main_thread_inline ( void *  fp,
u8 data,
u32  data_length,
u8  force_rpc 
)
inlinestatic

Definition at line 1878 of file memory_vlib.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_rpc_call_reply_t_handler ( vl_api_rpc_call_reply_t *  mp)
static

Definition at line 1837 of file memory_vlib.c.

static void vl_api_rpc_call_t_handler ( vl_api_rpc_call_t mp)
static

Definition at line 1792 of file memory_vlib.c.

+ Here is the call graph for this function:

void vl_api_send_pending_rpc_requests ( vlib_main_t vm)

Definition at line 1843 of file memory_vlib.c.

+ Here is the call graph for this function:

u8* vl_api_serialize_message_table ( api_main_t am,
u8 vector 
)

Definition at line 115 of file memory_vlib.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* vl_api_show_histogram_command ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cli_cmd 
)
static

Definition at line 1113 of file memory_vlib.c.

+ Here is the call graph for this function:

static clib_error_t* vl_api_show_plugin_command ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cli_cmd 
)
static

Definition at line 1750 of file memory_vlib.c.

+ Here is the call graph for this function:

static clib_error_t* vl_api_status_command ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cli_cmd 
)
static

Definition at line 1480 of file memory_vlib.c.

+ Here is the call graph for this function:

static clib_error_t* vl_api_trace_command ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cli_cmd 
)
static

Definition at line 1610 of file memory_vlib.c.

+ Here is the call graph for this function:

static void vl_api_trace_plugin_msg_ids_t_handler ( vl_api_trace_plugin_msg_ids_t mp)
static

Definition at line 1934 of file memory_vlib.c.

static void* vl_api_trace_plugin_msg_ids_t_print ( vl_api_trace_plugin_msg_ids_t a,
void *  handle 
)
inlinestatic

Definition at line 84 of file memory_vlib.c.

void vl_enable_disable_memory_api ( vlib_main_t vm,
int  enable 
)

Definition at line 1231 of file memory_vlib.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vl_msg_api_custom_dump_configure ( api_main_t am)

Definition at line 2065 of file memory_vlib.c.

+ Here is the caller graph for this function:

static void vl_msg_api_process_file ( vlib_main_t vm,
u8 filename,
u32  first_index,
u32  last_index,
vl_api_replay_t  which 
)
static

Definition at line 2070 of file memory_vlib.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vl_msg_api_send ( vl_api_registration_t rp,
u8 elem 
)

Definition at line 102 of file memory_vlib.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vl_set_memory_region_name ( const char *  name)

Definition at line 1717 of file memory_vlib.c.

+ Here is the caller graph for this function:

void vl_socket_api_send ( vl_api_registration_t rp,
u8 elem 
)

Definition at line 79 of file socksvr_vlib.c.

+ Here is the caller graph for this function:

VLIB_API_INIT_FUNCTION ( rpc_api_hookup  )

+ Here is the caller graph for this function:

clib_error_t* vlibmemory_init ( vlib_main_t vm)

Definition at line 1688 of file memory_vlib.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

vlib_node_registration_t api_rx_from_node_node
static
Initial value:
= {
.function = api_rx_from_node,
.vector_size = 4,
.name = "api-rx-from-node",
}
static uword api_rx_from_node(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: memory_vlib.c:1240

(constructor) VLIB_REGISTER_NODE (api_rx_from_node_node)

Definition at line 1290 of file memory_vlib.c.

vlib_cli_command_t api_trace_command
static
Initial value:
=
{
.path = "api trace",
.short_help =
"api trace [on|off][dump|save|replay <file>][status][free][post-mortem-on]",
.function = api_trace_command_fn,
}
static clib_error_t * api_trace_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: memory_vlib.c:2335

(constructor) VLIB_CLI_COMMAND (api_trace_command)

Definition at line 2457 of file memory_vlib.c.

vlib_cli_command_t cli_clear_api_histogram_command
static
Initial value:
=
{
.path = "clear api histogram",
.short_help = "clear api histogram",
}
static clib_error_t * vl_api_clear_histogram_command(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cli_cmd)
Definition: memory_vlib.c:1160

(constructor) VLIB_CLI_COMMAND (cli_clear_api_histogram_command)

Definition at line 1175 of file memory_vlib.c.

vlib_cli_command_t cli_show_api_clients_command
static
Initial value:
=
{
.path = "show api clients",
.short_help = "Client information",
.function = vl_api_client_command,
}
static clib_error_t * vl_api_client_command(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cli_cmd)
Definition: memory_vlib.c:1417

(constructor) VLIB_CLI_COMMAND (cli_show_api_clients_command)

Definition at line 1538 of file memory_vlib.c.

vlib_cli_command_t cli_show_api_command
static
Initial value:
=
{
.path = "show api",
.short_help = "Show API information",
}

(constructor) VLIB_CLI_COMMAND (cli_show_api_command)

Definition at line 1515 of file memory_vlib.c.

vlib_cli_command_t cli_show_api_histogram_command
static
Initial value:
=
{
.path = "show api histogram",
.short_help = "show api histogram",
}
static clib_error_t * vl_api_show_histogram_command(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cli_cmd)
Definition: memory_vlib.c:1113

(constructor) VLIB_CLI_COMMAND (cli_show_api_histogram_command)

Definition at line 1151 of file memory_vlib.c.

vlib_cli_command_t cli_show_api_message_table_command
static
Initial value:
=
{
.path = "show api message-table",
.short_help = "Message Table",
}
static clib_error_t * vl_api_message_table_command(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cli_cmd)
Definition: memory_vlib.c:1559

(constructor) VLIB_CLI_COMMAND (cli_show_api_message_table_command)

Definition at line 1601 of file memory_vlib.c.

vlib_cli_command_t cli_show_api_plugin_command
static
Initial value:
=
{
.path = "show api plugin",
.short_help = "show api plugin",
}
static clib_error_t * vl_api_show_plugin_command(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cli_cmd)
Definition: memory_vlib.c:1750

(constructor) VLIB_CLI_COMMAND (cli_show_api_plugin_command)

Definition at line 1783 of file memory_vlib.c.

vlib_cli_command_t cli_show_api_ring_command
static
Initial value:
=
{
.path = "show api ring-stats",
.short_help = "Message ring statistics",
.function = vl_api_ring_command,
}
static clib_error_t * vl_api_ring_command(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cli_cmd)
Definition: memory_vlib.c:1352

(constructor) VLIB_CLI_COMMAND (cli_show_api_ring_command)

Definition at line 1526 of file memory_vlib.c.

vlib_cli_command_t cli_show_api_status_command
static
Initial value:
=
{
.path = "show api trace-status",
.short_help = "Display API trace status",
.function = vl_api_status_command,
}
static clib_error_t * vl_api_status_command(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cli_cmd)
Definition: memory_vlib.c:1480

(constructor) VLIB_CLI_COMMAND (cli_show_api_status_command)

Definition at line 1550 of file memory_vlib.c.

vlib_cli_command_t dump_api_table_file
static
Initial value:
=
{
.path = "show api dump",
.short_help = "show api dump file <filename> [numeric | compare-current]",
}
static clib_error_t * dump_api_table_file_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: memory_vlib.c:2589

(constructor) VLIB_CLI_COMMAND (dump_api_table_file)

Definition at line 2791 of file memory_vlib.c.

Initial value:
=
{
.function = memclnt_process,
.name = "api-rx-from-ring",
.state = VLIB_NODE_STATE_DISABLED,
}
static uword memclnt_process(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *f)
Definition: memory_vlib.c:801

(constructor) VLIB_REGISTER_NODE (memclnt_node)

Definition at line 1102 of file memory_vlib.c.

void* rpc_call_main_thread_cb_fn

Definition at line 1795 of file threads.c.

vlib_cli_command_t trace
static
Initial value:
=
{
.path = "set api-trace [on][on tx][on rx][off][free][debug on][debug off]",
.short_help = "API trace",
.function = vl_api_trace_command,
}
static clib_error_t * vl_api_trace_command(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cli_cmd)
Definition: memory_vlib.c:1610

(constructor) VLIB_CLI_COMMAND (trace)

Definition at line 1679 of file memory_vlib.c.

u64 vector_rate_histogram[SLEEP_N_BUCKETS]
static

Definition at line 574 of file memory_vlib.c.

volatile int** vl_api_queue_cursizes

Definition at line 1183 of file memory_vlib.c.