FD.io VPP  v19.08.3-2-gbabecb413
Vector Packet Processing
perfmon.h File Reference
+ Include dependency graph for perfmon.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  perfmon_event_config_t
 
struct  perfmon_capture_t
 
struct  name_value_pair_t
 
struct  perfmon_main_t
 

Macros

#define foreach_perfmon_event
 
#define PERFMON_START   1
 

Enumerations

enum  perfmon_state_t { PERFMON_STATE_OFF = 0, PERFMON_STATE_RUNNING }
 

Functions

uwordperfmon_parse_table (perfmon_main_t *pm, char *path, char *filename)
 

Variables

perfmon_main_t perfmon_main
 
vlib_node_registration_t perfmon_periodic_node
 (constructor) VLIB_REGISTER_NODE (perfmon_periodic_node) More...
 

Macro Definition Documentation

◆ foreach_perfmon_event

#define foreach_perfmon_event
Value:
_(PERF_TYPE_HARDWARE, PERF_COUNT_HW_CPU_CYCLES, "cpu-cycles") \
_(PERF_TYPE_HARDWARE, PERF_COUNT_HW_INSTRUCTIONS, "instructions") \
_(PERF_TYPE_HARDWARE, PERF_COUNT_HW_CACHE_REFERENCES, \
"cache-references") \
_(PERF_TYPE_HARDWARE, PERF_COUNT_HW_CACHE_MISSES, "cache-misses") \
_(PERF_TYPE_HARDWARE, PERF_COUNT_HW_BRANCH_INSTRUCTIONS, "branches") \
_(PERF_TYPE_HARDWARE, PERF_COUNT_HW_BRANCH_MISSES, "branch-misses") \
_(PERF_TYPE_HARDWARE, PERF_COUNT_HW_BUS_CYCLES, "bus-cycles") \
_(PERF_TYPE_HARDWARE, PERF_COUNT_HW_STALLED_CYCLES_FRONTEND, \
"stall-frontend") \
_(PERF_TYPE_HARDWARE, PERF_COUNT_HW_STALLED_CYCLES_BACKEND, \
"stall-backend") \
_(PERF_TYPE_HARDWARE, PERF_COUNT_HW_REF_CPU_CYCLES, "ref-cpu-cycles") \
_(PERF_TYPE_SOFTWARE, PERF_COUNT_SW_PAGE_FAULTS, "page-faults") \
_(PERF_TYPE_SOFTWARE, PERF_COUNT_SW_CONTEXT_SWITCHES, "context-switches") \
_(PERF_TYPE_SOFTWARE, PERF_COUNT_SW_CPU_MIGRATIONS, "cpu-migrations") \
_(PERF_TYPE_SOFTWARE, PERF_COUNT_SW_PAGE_FAULTS_MIN, "minor-pagefaults") \
_(PERF_TYPE_SOFTWARE, PERF_COUNT_SW_PAGE_FAULTS_MAJ, "major-pagefaults") \
_(PERF_TYPE_SOFTWARE, PERF_COUNT_SW_EMULATION_FAULTS, "emulation-faults")

Definition at line 31 of file perfmon.h.

◆ PERFMON_START

#define PERFMON_START   1

Definition at line 141 of file perfmon.h.

Enumeration Type Documentation

◆ perfmon_state_t

Enumerator
PERFMON_STATE_OFF 
PERFMON_STATE_RUNNING 

Definition at line 59 of file perfmon.h.

Function Documentation

◆ perfmon_parse_table()

uword* perfmon_parse_table ( perfmon_main_t pm,
char *  path,
char *  filename 
)

Variable Documentation

◆ perfmon_main

perfmon_main_t perfmon_main

Definition at line 28 of file perfmon.c.

◆ perfmon_periodic_node

vlib_node_registration_t perfmon_periodic_node

(constructor) VLIB_REGISTER_NODE (perfmon_periodic_node)

Definition at line 569 of file perfmon_periodic.c.