FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
linux.c File Reference
+ Include dependency graph for linux.c:

Go to the source code of this file.

Macros

#define foreach_perf_sw_counter
 

Enumerations

enum  linux_sw_events { foreach_perf_sw_counter }
 

Functions

 PERFMON_REGISTER_SOURCE (linux)
 
static u8format_context_switches (u8 *s, va_list *args)
 
 PERFMON_REGISTER_BUNDLE (context_switches)
 
static u8format_page_faults (u8 *s, va_list *args)
 
 PERFMON_REGISTER_BUNDLE (page_faults)
 

Variables

static perfmon_event_t events []
 

Macro Definition Documentation

◆ foreach_perf_sw_counter

#define foreach_perf_sw_counter
Value:
_ (CONTEXT_SWITCHES, "context-switches") \
_ (PAGE_FAULTS_MIN, "page-faults-minor") \
_ (PAGE_FAULTS_MAJ, "page-faults-major")

Definition at line 28 of file linux.c.

Enumeration Type Documentation

◆ linux_sw_events

Enumerator
foreach_perf_sw_counter 

Definition at line 33 of file linux.c.

Function Documentation

◆ format_context_switches()

static u8* format_context_switches ( u8 s,
va_list *  args 
)
static

Definition at line 55 of file linux.c.

◆ format_page_faults()

static u8* format_page_faults ( u8 s,
va_list *  args 
)
static

Definition at line 86 of file linux.c.

◆ PERFMON_REGISTER_BUNDLE() [1/2]

PERFMON_REGISTER_BUNDLE ( context_switches  )

◆ PERFMON_REGISTER_BUNDLE() [2/2]

PERFMON_REGISTER_BUNDLE ( page_faults  )

◆ PERFMON_REGISTER_SOURCE()

PERFMON_REGISTER_SOURCE ( linux  )

Variable Documentation

◆ events

perfmon_event_t events[]
static
Initial value:
= {
#define _(n, s)
}

Definition at line 40 of file linux.c.

foreach_perf_sw_counter
#define foreach_perf_sw_counter
Definition: linux.c:28