|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
17 #include <perfmon/perfmon.h>
20 #define GET_METRIC(m, i) (((m) >> (i * 8)) & 0xff)
21 #define GET_RATIO(m, i) (((m) >> (i * 32)) & 0xffffffff)
22 #define RDPMC_FIXED_SLOTS (1 << 30)
23 #define RDPMC_L1_METRICS (1 << 29)
25 #define FIXED_COUNTER_SLOTS 3
26 #define METRIC_COUNTER_TOPDOWN_L1 0
67 slots_t1 = slots_t1 - slots_t0;
69 return (slots_t1 / slots_delta) * 100;
75 void *ps = va_arg (*args,
void *);
76 u64 idx = va_arg (*args,
int);
83 parse_fn = parse_fns[
type];
114 .name =
"topdown-level1",
115 .description =
"Top-down Microarchitecture Analysis Level 1",
116 .source =
"intel-core",
118 .events[0] = INTEL_CORE_E_TOPDOWN_SLOTS,
119 .events[1] = INTEL_CORE_E_TOPDOWN_L1_RETIRING_METRIC,
120 .events[2] = INTEL_CORE_E_TOPDOWN_L1_BAD_SPEC_METRIC,
121 .events[3] = INTEL_CORE_E_TOPDOWN_L1_FE_BOUND_METRIC,
122 .events[4] = INTEL_CORE_E_TOPDOWN_L1_BE_BOUND_METRIC,
130 .column_headers =
PERFMON_STRINGS (
"% NS",
"% ST",
"% NS.RT",
"% NS.BS",
131 "% ST.FE",
"% ST.BE"),
132 .footer =
"Not Stalled (NS),STalled (ST),\n"
133 " Retiring (RT), Bad Speculation (BS),\n"
134 " FrontEnd bound (FE), BackEnd bound (BE)",
@ PERFMON_OFFSET_TYPE_METRICS
@ PERFMON_BUNDLE_TYPE_NODE
u64 value[PERF_MAX_EVENTS]
@ PERFMON_BUNDLE_TYPE_MAX
#define METRIC_COUNTER_TOPDOWN_L1
struct perfmon_node_stats_t::@769::@771 t[2]
@ PERFMON_BUNDLE_TYPE_THREAD
#define PERFMON_STRINGS(...)
#define static_always_inline
f64() topdown_lvl1_parse_fn_t(void *, topdown_lvl1_t)
PERFMON_REGISTER_BUNDLE(topdown_lvl1_metric)
static_always_inline f64 topdown_lvl1_perf_reading(void *ps, topdown_lvl1_t e)
description fragment has unexpected format
#define FIXED_COUNTER_SLOTS
static_always_inline f64 topdown_lvl1_rdpmc_metric(void *ps, topdown_lvl1_t e)
static u8 * format_topdown_lvl1(u8 *s, va_list *args)
vl_api_fib_path_type_t type
#define RDPMC_FIXED_SLOTS
@ TOPDOWN_E_RDPMC_METRICS
static perfmon_cpu_supports_t topdown_lvl1_cpu_supports[]