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

Go to the source code of this file.

Functions

static voidunix_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
 
vlib_cli_command_t show_physmem_command
 (constructor) VLIB_CLI_COMMAND (show_physmem_command) More...
 
vlib_cli_command_t show_affinity_command
 (constructor) VLIB_CLI_COMMAND (show_affinity_command) More...
 
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 111 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 100 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 382 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 313 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 289 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 92 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 204 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 199 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 456 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
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:382

(constructor) VLIB_CLI_COMMAND (set_affinity_command)

Definition at line 449 of file physmem.c.

vlib_cli_command_t show_affinity_command
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:313

(constructor) VLIB_CLI_COMMAND (show_affinity_command)

Definition at line 375 of file physmem.c.

vlib_cli_command_t show_physmem_command
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:289

(constructor) VLIB_CLI_COMMAND (show_physmem_command)

Definition at line 306 of file physmem.c.