FD.io VPP  v18.10-34-gcce845e
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)
 
clib_error_tmap_api_segment_init (vlib_main_t *vm)
 
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 409 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 784 of file memory_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* map_api_segment_init ( vlib_main_t vm)

Definition at line 468 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 482 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 775 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 235 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 759 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 255 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 373 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 393 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 827 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 730 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 578 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 699 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 707 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 419 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 534 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 945 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 896 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 686 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:827

(constructor) VLIB_CLI_COMMAND (cli_show_api_ring_command)

Definition at line 887 of file memory_api.c.

volatile int** vl_api_queue_cursizes

Definition at line 61 of file memory_api.c.