17 #ifndef __included_perfmon_h__ 18 #define __included_perfmon_h__ 28 #include <linux/perf_event.h> 31 #define foreach_perfmon_event \ 32 _(PERF_TYPE_HARDWARE, PERF_COUNT_HW_CPU_CYCLES, "cpu-cycles") \ 33 _(PERF_TYPE_HARDWARE, PERF_COUNT_HW_INSTRUCTIONS, "instructions") \ 34 _(PERF_TYPE_HARDWARE, PERF_COUNT_HW_CACHE_REFERENCES, \ 36 _(PERF_TYPE_HARDWARE, PERF_COUNT_HW_CACHE_MISSES, "cache-misses") \ 37 _(PERF_TYPE_HARDWARE, PERF_COUNT_HW_BRANCH_INSTRUCTIONS, "branches") \ 38 _(PERF_TYPE_HARDWARE, PERF_COUNT_HW_BRANCH_MISSES, "branch-misses") \ 39 _(PERF_TYPE_HARDWARE, PERF_COUNT_HW_BUS_CYCLES, "bus-cycles") \ 40 _(PERF_TYPE_HARDWARE, PERF_COUNT_HW_STALLED_CYCLES_FRONTEND, \ 42 _(PERF_TYPE_HARDWARE, PERF_COUNT_HW_STALLED_CYCLES_BACKEND, \ 44 _(PERF_TYPE_HARDWARE, PERF_COUNT_HW_REF_CPU_CYCLES, "ref-cpu-cycles") \ 45 _(PERF_TYPE_SOFTWARE, PERF_COUNT_SW_PAGE_FAULTS, "page-faults") \ 46 _(PERF_TYPE_SOFTWARE, PERF_COUNT_SW_CONTEXT_SWITCHES, "context-switches") \ 47 _(PERF_TYPE_SOFTWARE, PERF_COUNT_SW_CPU_MIGRATIONS, "cpu-migrations") \ 48 _(PERF_TYPE_SOFTWARE, PERF_COUNT_SW_PAGE_FAULTS_MIN, "minor-pagefaults") \ 49 _(PERF_TYPE_SOFTWARE, PERF_COUNT_SW_PAGE_FAULTS_MAJ, "major-pagefaults") \ 50 _(PERF_TYPE_SOFTWARE, PERF_COUNT_SW_EMULATION_FAULTS, "emulation-faults") 96 u8 *perf_event_pages[2];
167 #define PERFMON_START 1 perfmon_capture_t * capture_pool
#define CLIB_CACHE_LINE_ALIGN_MARK(mark)
u64 * vectors_this_counter
ethernet_main_t * ethernet_main
perfmon_event_config_t * paired_events_to_collect
perfmon_thread_t ** threads
vlib_node_registration_t perfmon_periodic_node
(constructor) VLIB_REGISTER_NODE (perfmon_periodic_node)
u32 mispredict_event_index
uword unformat_processor_event(unformat_input_t *input, va_list *args)
uword * perfmon_parse_table(perfmon_main_t *pm, char *path, char *filename)
perfmon_main_t perfmon_main
u8 * thread_and_node_name
uword * pmc_event_by_name
perfmon_intel_pmc_event_t * perfmon_table
vlib_log_class_t log_class
perfmon_counters_t * counters
perfmon_event_config_t * single_events_to_collect
uword * capture_by_thread_and_node_name
struct _vlib_node_registration vlib_node_registration_t
perfmon_intel_pmc_registration_t * perfmon_tables