Lines Matching +full:event +full:- +full:name
1 // SPDX-License-Identifier: GPL-2.0
3 * An empty pmu-events.c file used when there is no architecture json files in
8 #include "pmu-events/pmu-events.h"
16 .name = "l3_cache_rd",
17 .event = "event=0x40",
23 .name = "segment_reg_loads.any",
24 .event = "event=0x6,period=200000,umask=0x80",
29 .name = "dispatch_blocked.any",
30 .event = "event=0x9,period=200000,umask=0x20",
31 .desc = "Memory cluster signals to block micro-op dispatch for any reason",
35 .name = "eist_trans",
36 .event = "event=0x3a,period=200000,umask=0x0",
41 .name = "uncore_hisi_ddrc.flux_wcmd",
42 .event = "event=0x2",
49 .name = "unc_cbo_xsnp_response.miss_eviction",
50 .event = "event=0x22,umask=0x81",
51 ….desc = "A cross-core snoop resulted from L3 Eviction which misses in some processor core. Unit: u…
53 .long_desc = "A cross-core snoop resulted from L3 Eviction which misses in some processor core",
57 .name = "event-hyphen",
58 .event = "event=0xe0,umask=0x00",
65 .name = "event-two-hyph",
66 .event = "event=0xc0,umask=0x00",
73 .name = "uncore_hisi_l3c.rd_hit_cpipe",
74 .event = "event=0x7",
81 .name = "uncore_imc_free_running.cache_miss",
82 .event = "event=0x12",
89 .name = "uncore_imc.cache_hits",
90 .event = "event=0x34",
97 .name = "bp_l1_btb_correct",
98 .event = "event=0x8a",
103 .name = "bp_l2_btb_correct",
104 .event = "event=0x8b",
109 .name = 0,
110 .event = 0,
131 .metric_expr = "l1d\\-loads\\-misses / inst_retired.any",
135 .metric_expr = "l1i\\-loads\\-misses / inst_retired.any",
148 .metric_expr = "max(l2_rqsts.all_demand_data_rd - l2_rqsts.demand_data_rd_hit, 0) + "
186 /* Struct used to make the PMU event table implementation opaque to callers. */
198 * cpuid field, which is an arch-specific identifier for the CPU.
199 * The identifier specified in tools/perf/pmu-events/arch/xxx/mapfile
232 .name = "sys_ddr_pmu.write_cycles",
233 .event = "event=0x2b",
234 .desc = "ddr write-cycles event. Unit: uncore_sys_ddr_pmu ",
240 .name = "sys_ccn_pmu.read_cycles",
241 .event = "config=0x2c",
242 .desc = "ccn read-cycles event. Unit: uncore_sys_ccn_pmu ",
248 .name = 0,
249 .event = 0,
255 const char *name; member
262 .name = "pmu_events__test_soc_sys",
272 for (const struct pmu_event *pe = &table->entries[0]; pe->name; pe++) { in pmu_events_table__for_each_event()
275 if (pmu && !pmu__name_match(pmu, pe->pmu)) in pmu_events_table__for_each_event()
287 const char *name, in pmu_events_table__find_event() argument
291 for (const struct pmu_event *pe = &table->entries[0]; pe->name; pe++) { in pmu_events_table__find_event()
292 if (pmu && !pmu__name_match(pmu, pe->pmu)) in pmu_events_table__find_event()
295 if (!strcasecmp(pe->name, name)) in pmu_events_table__find_event()
298 return -1000; in pmu_events_table__find_event()
306 for (const struct pmu_event *pe = &table->entries[0]; pe->name; pe++) { in pmu_events_table__num_events()
307 if (pmu && !pmu__name_match(pmu, pe->pmu)) in pmu_events_table__num_events()
318 for (const struct pmu_metric *pm = &table->entries[0]; pm->metric_expr; pm++) { in pmu_metrics_table__for_each_metric()
343 if (!map->cpuid) in perf_pmu__find_events_table()
346 if (!strcmp_cpuid_str(map->cpuid, cpuid)) { in perf_pmu__find_events_table()
347 table = &map->event_table; in perf_pmu__find_events_table()
371 if (!map->cpuid) in perf_pmu__find_metrics_table()
374 if (!strcmp_cpuid_str(map->cpuid, cpuid)) { in perf_pmu__find_metrics_table()
375 table = &map->metric_table; in perf_pmu__find_metrics_table()
386 tables->arch; in find_core_events_table()
388 if (!strcmp(tables->arch, arch) && !strcmp_cpuid_str(tables->cpuid, cpuid)) in find_core_events_table()
389 return &tables->event_table; in find_core_events_table()
397 tables->arch; in find_core_metrics_table()
399 if (!strcmp(tables->arch, arch) && !strcmp_cpuid_str(tables->cpuid, cpuid)) in find_core_metrics_table()
400 return &tables->metric_table; in find_core_metrics_table()
407 for (const struct pmu_events_map *tables = &pmu_events_map[0]; tables->arch; tables++) { in pmu_for_each_core_event()
408 int ret = pmu_events_table__for_each_event(&tables->event_table, in pmu_for_each_core_event()
420 tables->arch; in pmu_for_each_core_metric()
422 int ret = pmu_metrics_table__for_each_metric(&tables->metric_table, fn, data); in pmu_for_each_core_metric()
430 const struct pmu_events_table *find_sys_events_table(const char *name) in find_sys_events_table() argument
433 tables->name; in find_sys_events_table()
435 if (!strcmp(tables->name, name)) in find_sys_events_table()
436 return &tables->table; in find_sys_events_table()
444 tables->name; in pmu_for_each_sys_event()
446 int ret = pmu_events_table__for_each_event(&tables->table, /*pmu=*/ NULL, fn, data); in pmu_for_each_sys_event()