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

Go to the source code of this file.

Macros

#define FRAME_QUEUE_NELTS   32
 

Functions

u32 vl (void *p)
 
void debug_hex_bytes (u8 *s, u32 n)
 
uword os_get_cpu_number (void)
 
void vlib_set_thread_name (char *name)
 
static int sort_registrations_by_no_clone (void *a0, void *a1)
 
static uwordvlib_sysfs_list_to_bitmap (char *filename)
 
clib_error_tvlib_thread_init (vlib_main_t *vm)
 
vlib_worker_thread_tvlib_alloc_thread (vlib_main_t *vm)
 
vlib_frame_queue_tvlib_frame_queue_alloc (int nelts)
 
void vl_msg_api_handler_no_free (void *)
 
void vlib_worker_thread_init (vlib_worker_thread_t *w)
 
voidvlib_worker_thread_bootstrap_fn (void *arg)
 
static int vlib_launch_thread (void *fp, vlib_worker_thread_t *w, unsigned lcore_id)
 
static clib_error_tstart_workers (vlib_main_t *vm)
 
void vlib_worker_thread_node_runtime_update (void)
 
static clib_error_tcpu_config (vlib_main_t *vm, unformat_input_t *input)
 
void vnet_main_fixup (vlib_fork_fixup_t which)
 
void vlib_worker_thread_fork_fixup (vlib_fork_fixup_t which)
 
void vlib_worker_thread_barrier_sync (vlib_main_t *vm)
 
void vlib_worker_thread_barrier_release (vlib_main_t *vm)
 
static clib_error_tshow_threads_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

 DECLARE_CJ_GLOBAL_LOG
 
vlib_thread_main_t vlib_thread_main
 
vlib_cli_command_t show_threads_command
 (constructor) VLIB_CLI_COMMAND (show_threads_command) More...
 

Macro Definition Documentation

#define FRAME_QUEUE_NELTS   32

Definition at line 36 of file threads.c.

Function Documentation

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

Definition at line 963 of file threads.c.

+ Here is the call graph for this function:

void debug_hex_bytes ( u8 s,
u32  n 
)

Definition at line 54 of file threads.c.

+ Here is the call graph for this function:

uword os_get_cpu_number ( void  )

Definition at line 62 of file threads.c.

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

Definition at line 1156 of file threads.c.

+ Here is the call graph for this function:

static int sort_registrations_by_no_clone ( void a0,
void a1 
)
static

Definition at line 94 of file threads.c.

+ Here is the caller graph for this function:

static clib_error_t* start_workers ( vlib_main_t vm)
static

Definition at line 526 of file threads.c.

+ Here is the call graph for this function:

u32 vl ( void p)

Definition at line 49 of file threads.c.

void vl_msg_api_handler_no_free ( void v)

Definition at line 316 of file threads.c.

+ Here is the caller graph for this function:

vlib_worker_thread_t* vlib_alloc_thread ( vlib_main_t vm)

Definition at line 269 of file threads.c.

vlib_frame_queue_t* vlib_frame_queue_alloc ( int  nelts)

Definition at line 283 of file threads.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int vlib_launch_thread ( void fp,
vlib_worker_thread_t w,
unsigned  lcore_id 
)
static

Definition at line 499 of file threads.c.

+ Here is the caller graph for this function:

void vlib_set_thread_name ( char *  name)

Definition at line 85 of file threads.c.

+ Here is the caller graph for this function:

static uword* vlib_sysfs_list_to_bitmap ( char *  filename)
static

Definition at line 104 of file threads.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* vlib_thread_init ( vlib_main_t vm)

Definition at line 132 of file threads.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vlib_worker_thread_barrier_release ( vlib_main_t vm)

Definition at line 1131 of file threads.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vlib_worker_thread_barrier_sync ( vlib_main_t vm)

Definition at line 1100 of file threads.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void* vlib_worker_thread_bootstrap_fn ( void arg)

Definition at line 474 of file threads.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vlib_worker_thread_fork_fixup ( vlib_fork_fixup_t  which)

Definition at line 1078 of file threads.c.

+ Here is the call graph for this function:

void vlib_worker_thread_init ( vlib_worker_thread_t w)

Definition at line 439 of file threads.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vlib_worker_thread_node_runtime_update ( void  )

Definition at line 796 of file threads.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vnet_main_fixup ( vlib_fork_fixup_t  which)

Definition at line 1076 of file threads.c.

+ Here is the caller graph for this function:

Variable Documentation

DECLARE_CJ_GLOBAL_LOG

Definition at line 34 of file threads.c.

vlib_cli_command_t show_threads_command
Initial value:
= {
.path = "show threads",
.short_help = "Show threads",
.function = show_threads_fn,
}
static clib_error_t * show_threads_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: threads.c:1156

(constructor) VLIB_CLI_COMMAND (show_threads_command)

Definition at line 1213 of file threads.c.

vlib_thread_main_t vlib_thread_main

Definition at line 59 of file threads.c.