Lines Matching +full:event +full:- +full:name

1 // SPDX-License-Identifier: GPL-2.0
8 #include "pmu-events/pmu-events.h"
28 .metric_expr = "l1d\\-loads\\-misses / inst_retired.any",
32 .metric_expr = "l1i\\-loads\\-misses / inst_retired.any",
45 .metric_expr = "max(l2_rqsts.all_demand_data_rd - l2_rqsts.demand_data_rd_hit, 0) + "
78 .name = NULL,
90 const char *event; member
94 static u64 find_value(const char *name, struct value *values) in find_value() argument
98 while (v->event) { in find_value()
99 if (!strcmp(name, v->event)) in find_value()
100 return v->val; in find_value()
113 count = find_value(evsel->name, vals); in load_runtime_stat()
115 if (!strcmp(evsel->name, "duration_time")) in load_runtime_stat()
121 struct runtime_stat *st, const char *name) in compute_single() argument
130 list_for_each_entry (mexp, &me->head, nd) { in compute_single()
131 if (strcmp(mexp->metric_name, name)) in compute_single()
140 static int __compute_metric(const char *name, struct value *vals, in __compute_metric() argument
158 return -ENOMEM; in __compute_metric()
163 return -ENOMEM; in __compute_metric()
166 perf_evlist__set_maps(&evlist->core, cpus, NULL); in __compute_metric()
170 err = metricgroup__parse_groups_test(evlist, &map, name, in __compute_metric()
199 static int compute_metric(const char *name, struct value *vals, double *ratio) in compute_metric() argument
201 return __compute_metric(name, vals, name, ratio, NULL, NULL); in compute_metric()
204 static int compute_metric_group(const char *name, struct value *vals, in compute_metric_group() argument
208 return __compute_metric(name, vals, name1, ratio1, name2, ratio2); in compute_metric_group()
215 { .event = "inst_retired.any", .val = 300 }, in test_ipc()
216 { .event = "cpu_clk_unhalted.thread", .val = 200 }, in test_ipc()
217 { .event = NULL, }, in test_ipc()
232 { .event = "idq_uops_not_delivered.core", .val = 300 }, in test_frontend()
233 { .event = "cpu_clk_unhalted.thread", .val = 200 }, in test_frontend()
234 { .event = "cpu_clk_unhalted.one_thread_active", .val = 400 }, in test_frontend()
235 { .event = "cpu_clk_unhalted.ref_xclk", .val = 600 }, in test_frontend()
236 { .event = NULL, }, in test_frontend()
251 { .event = "l1d-loads-misses", .val = 300 }, in test_cache_miss_cycles()
252 { .event = "l1i-loads-misses", .val = 200 }, in test_cache_miss_cycles()
253 { .event = "inst_retired.any", .val = 400 }, in test_cache_miss_cycles()
254 { .event = NULL, }, in test_cache_miss_cycles()
268 * DCache_L2_All_Miss = max(l2_rqsts.all_demand_data_rd - l2_rqsts.demand_data_rd_hit, 0) +
282 * DCache_L2_All_Miss = MAX(400 - 100, 0) + 500 + 600 = 1400
291 { .event = "l2_rqsts.demand_data_rd_hit", .val = 100 }, in test_dcache_l2()
292 { .event = "l2_rqsts.pf_hit", .val = 200 }, in test_dcache_l2()
293 { .event = "l2_rqsts.rfo_hit", .val = 300 }, in test_dcache_l2()
294 { .event = "l2_rqsts.all_demand_data_rd", .val = 400 }, in test_dcache_l2()
295 { .event = "l2_rqsts.pf_miss", .val = 500 }, in test_dcache_l2()
296 { .event = "l2_rqsts.rfo_miss", .val = 600 }, in test_dcache_l2()
297 { .event = NULL, }, in test_dcache_l2()
318 { .event = "inst_retired.any", .val = 300 }, in test_recursion_fail()
319 { .event = "cpu_clk_unhalted.thread", .val = 200 }, in test_recursion_fail()
320 { .event = NULL, }, in test_recursion_fail()
324 compute_metric("M1", vals, &ratio) == -1); in test_recursion_fail()
327 compute_metric("M3", vals, &ratio) == -1); in test_recursion_fail()
335 { .event = "l1d.replacement", .val = 4000000 }, in test_memory_bandwidth()
336 { .event = "duration_time", .val = 200000000 }, in test_memory_bandwidth()
337 { .event = NULL, }, in test_memory_bandwidth()
352 { .event = "cpu_clk_unhalted.thread", .val = 200 }, in test_metric_group()
353 { .event = "l1d-loads-misses", .val = 300 }, in test_metric_group()
354 { .event = "l1i-loads-misses", .val = 200 }, in test_metric_group()
355 { .event = "inst_retired.any", .val = 400 }, in test_metric_group()
356 { .event = NULL, }, in test_metric_group()