FD.io VPP  v16.09
Vector Packet Processing
physmem.c File Reference
+ Include dependency graph for physmem.c:

Go to the source code of this file.

Functions

static void * unix_physmem_alloc_aligned (vlib_physmem_main_t *vpm, uword n_bytes, uword alignment)
 
static void unix_physmem_free (void *x)
 
static void htlb_shutdown (void)
 
static int htlb_init (vlib_main_t *vm)
 
int vlib_app_physmem_init (vlib_main_t *vm, physmem_main_t *pm, int)
 
clib_error_tunix_physmem_init (vlib_main_t *vm, int physical_memory_required)
 
static clib_error_tshow_physmem (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tshow_affinity (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tset_affinity (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tvlib_physmem_configure (vlib_main_t *vm, unformat_input_t *input)
 

Variables

static physmem_main_t physmem_main
 
static vlib_cli_command_t show_physmem_command
 (constructor) VLIB_CLI_COMMAND (show_physmem_command) More...
 
static vlib_cli_command_t show_affinity_command
 (constructor) VLIB_CLI_COMMAND (show_affinity_command) More...
 
static vlib_cli_command_t set_affinity_command
 (constructor) VLIB_CLI_COMMAND (set_affinity_command) More...
 

Function Documentation

static int htlb_init ( vlib_main_t vm)
static

Definition at line 115 of file physmem.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void htlb_shutdown ( void  )
static

Definition at line 103 of file physmem.c.

+ Here is the caller graph for this function:

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

Definition at line 364 of file physmem.c.

+ Here is the call graph for this function:

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

Definition at line 294 of file physmem.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 269 of file physmem.c.

+ Here is the call graph for this function:

static void* unix_physmem_alloc_aligned ( vlib_physmem_main_t vpm,
uword  n_bytes,
uword  alignment 
)
static

Definition at line 45 of file physmem.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void unix_physmem_free ( void *  x)
static

Definition at line 94 of file physmem.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* unix_physmem_init ( vlib_main_t vm,
int  physical_memory_required 
)

Definition at line 209 of file physmem.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vlib_app_physmem_init ( vlib_main_t vm,
physmem_main_t pm,
int  x 
)

Definition at line 203 of file physmem.c.

+ Here is the caller graph for this function:

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

Definition at line 441 of file physmem.c.

+ Here is the call graph for this function:

Variable Documentation

physmem_main_t physmem_main
static

Definition at line 42 of file physmem.c.

vlib_cli_command_t set_affinity_command
static
Initial value:
= {
.path = "set affinity",
.short_help = "Set process cpu affinity",
.function = set_affinity,
}
static clib_error_t * set_affinity(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: physmem.c:364

(constructor) VLIB_CLI_COMMAND (set_affinity_command)

Definition at line 433 of file physmem.c.

vlib_cli_command_t show_affinity_command
static
Initial value:
= {
.path = "show affinity",
.short_help = "Show process cpu affinity",
.function = show_affinity,
}
static clib_error_t * show_affinity(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: physmem.c:294

(constructor) VLIB_CLI_COMMAND (show_affinity_command)

Definition at line 356 of file physmem.c.

vlib_cli_command_t show_physmem_command
static
Initial value:
= {
.path = "show physmem",
.short_help = "Show physical memory allocation",
.function = show_physmem,
}
static clib_error_t * show_physmem(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: physmem.c:269

(constructor) VLIB_CLI_COMMAND (show_physmem_command)

Definition at line 286 of file physmem.c.