FD.io VPP  v19.01.2-3-gf61a1a8
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  perfmon_cpuid_and_table_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

#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 30 of file perfmon.h.

#define PERFMON_START   1

Definition at line 135 of file perfmon.h.

Enumeration Type Documentation

Enumerator
PERFMON_STATE_OFF 
PERFMON_STATE_RUNNING 

Definition at line 58 of file perfmon.h.

Function Documentation

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

Definition at line 46 of file parse_util.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

perfmon_main_t perfmon_main

Definition at line 27 of file perfmon.c.

vlib_node_registration_t perfmon_periodic_node

(constructor) VLIB_REGISTER_NODE (perfmon_periodic_node)

Definition at line 419 of file perfmon_periodic.c.