FD.io VPP  v18.04-17-g3a0d853
Vector Packet Processing
memory_api.c File Reference
+ Include dependency graph for memory_api.c:

Go to the source code of this file.

Macros

#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
 

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 memclnt_queue_callback (vlib_main_t *vm)
 
u32 vl_api_memclnt_create_internal (char *name, svm_queue_t *q)
 
void vl_api_memclnt_create_t_handler (vl_api_memclnt_create_t *mp)
 
int vl_api_call_reaper_functions (u32 client_index)
 
void vl_api_memclnt_delete_t_handler (vl_api_memclnt_delete_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...
 
int vl_mem_api_init (const char *region_name)
 
static void send_memclnt_keepalive (vl_api_registration_t *regp, f64 now)
 
static void vl_mem_send_client_keepalive_w_reg (api_main_t *am, f64 now, vl_api_registration_t **regpp, u32 **dead_indices, u32 **confused_indices)
 
void vl_mem_api_dead_client_scan (api_main_t *am, vl_shmem_hdr_t *shm, f64 now)
 
static int void_mem_api_handle_msg_i (api_main_t *am, vlib_main_t *vm, vlib_node_runtime_t *node, svm_queue_t *q)
 
int vl_mem_api_handle_msg_main (vlib_main_t *vm, vlib_node_runtime_t *node)
 
int vl_mem_api_handle_msg_private (vlib_main_t *vm, vlib_node_runtime_t *node, u32 reg_index)
 
vl_api_registration_tvl_mem_api_client_index_to_registration (u32 handle)
 
svm_queue_tvl_api_client_index_to_input_queue (u32 index)
 
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)
 
clib_error_tvlibmemory_init (vlib_main_t *vm)
 
void vl_set_memory_region_name (const char *name)
 

Variables

volatile int ** vl_api_queue_cursizes
 
static vlib_cli_command_t cli_show_api_ring_command
 (constructor) VLIB_CLI_COMMAND (cli_show_api_ring_command) More...
 

Macro Definition Documentation

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

Definition at line 403 of file memory_api.c.

#define vl_endianfun

Definition at line 37 of file memory_api.c.

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

Definition at line 31 of file memory_api.c.

#define vl_printfun

Definition at line 32 of file memory_api.c.

#define vl_typedefs   /* define message structures */

Definition at line 26 of file memory_api.c.

Function Documentation

u8* format_api_message_rings ( u8 s,
va_list *  args 
)

Definition at line 764 of file memory_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void memclnt_queue_callback ( vlib_main_t vm)
static

Definition at line 64 of file memory_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void send_memclnt_keepalive ( vl_api_registration_t regp,
f64  now 
)
static

Definition at line 462 of file memory_api.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 755 of file memory_api.c.

+ Here is the call graph for this function:

int vl_api_call_reaper_functions ( u32  client_index)

Definition at line 230 of file memory_api.c.

+ Here is the caller graph for this function:

svm_queue_t* vl_api_client_index_to_input_queue ( u32  index)

Definition at line 739 of file memory_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 vl_api_memclnt_create_internal ( char *  name,
svm_queue_t q 
)

Definition at line 112 of file memory_api.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 150 of file memory_api.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 42 of file memory_api.c.

void vl_api_memclnt_delete_t_handler ( vl_api_memclnt_delete_t mp)

Definition at line 250 of file memory_api.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 53 of file memory_api.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 367 of file memory_api.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 387 of file memory_api.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 807 of file memory_api.c.

+ Here is the call graph for this function:

vl_api_registration_t* vl_mem_api_client_index_to_registration ( u32  handle)

Definition at line 710 of file memory_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vl_mem_api_dead_client_scan ( api_main_t am,
vl_shmem_hdr_t shm,
f64  now 
)

Definition at line 558 of file memory_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vl_mem_api_handle_msg_main ( vlib_main_t vm,
vlib_node_runtime_t node 
)

Definition at line 679 of file memory_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vl_mem_api_handle_msg_private ( vlib_main_t vm,
vlib_node_runtime_t node,
u32  reg_index 
)

Definition at line 687 of file memory_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vl_mem_api_init ( const char *  region_name)

Definition at line 413 of file memory_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_mem_send_client_keepalive_w_reg ( api_main_t am,
f64  now,
vl_api_registration_t **  regpp,
u32 **  dead_indices,
u32 **  confused_indices 
)
static

Definition at line 514 of file memory_api.c.

+ Here is the call graph for this function:

void vl_set_memory_region_name ( const char *  name)

Definition at line 905 of file memory_api.c.

+ Here is the caller graph for this function:

clib_error_t* vlibmemory_init ( vlib_main_t vm)

Definition at line 876 of file memory_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int void_mem_api_handle_msg_i ( api_main_t am,
vlib_main_t vm,
vlib_node_runtime_t node,
svm_queue_t q 
)
inlinestatic

Definition at line 666 of file memory_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

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_api.c:807

(constructor) VLIB_CLI_COMMAND (cli_show_api_ring_command)

Definition at line 867 of file memory_api.c.

volatile int** vl_api_queue_cursizes

Definition at line 61 of file memory_api.c.