Home
last modified time | relevance | path

Searched refs:fake_pmu (Results 1 – 8 of 8) sorted by relevance

/Linux-v6.1/drivers/dma/idxd/
Dperfmon.c158 struct idxd_pmu *fake_pmu; in perfmon_validate_group() local
161 fake_pmu = kzalloc(sizeof(*fake_pmu), GFP_KERNEL); in perfmon_validate_group()
162 if (!fake_pmu) in perfmon_validate_group()
165 fake_pmu->pmu.name = pmu->pmu.name; in perfmon_validate_group()
166 fake_pmu->n_counters = pmu->n_counters; in perfmon_validate_group()
168 n = perfmon_collect_events(fake_pmu, leader, true); in perfmon_validate_group()
174 fake_pmu->n_events = n; in perfmon_validate_group()
175 n = perfmon_collect_events(fake_pmu, event, false); in perfmon_validate_group()
181 fake_pmu->n_events = n; in perfmon_validate_group()
184 event = fake_pmu->event_list[i]; in perfmon_validate_group()
[all …]
/Linux-v6.1/drivers/perf/
Darm_pmu.c392 struct pmu_hw_events fake_pmu; in validate_group() local
398 memset(&fake_pmu.used_mask, 0, sizeof(fake_pmu.used_mask)); in validate_group()
400 if (!validate_event(event->pmu, &fake_pmu, leader)) in validate_group()
407 if (!validate_event(event->pmu, &fake_pmu, sibling)) in validate_group()
411 if (!validate_event(event->pmu, &fake_pmu, event)) in validate_group()
Darm-cci.c1257 struct cci_pmu_hw_events fake_pmu = { in validate_group() local
1266 if (!validate_event(event->pmu, &fake_pmu, leader)) in validate_group()
1270 if (!validate_event(event->pmu, &fake_pmu, sibling)) in validate_group()
1274 if (!validate_event(event->pmu, &fake_pmu, event)) in validate_group()
/Linux-v6.1/tools/perf/util/
Dparse-events.h30 struct perf_pmu *fake_pmu);
131 struct perf_pmu *fake_pmu; member
Dparse-events.c1408 if (parse_state->fake_pmu || !head_config || list_empty(head_config) || in parse_events__inside_hybrid_pmu()
1442 pmu = parse_state->fake_pmu ?: perf_pmu__find(name); in parse_events_add_pmu()
1492 if (!parse_state->fake_pmu && perf_pmu__check_alias(pmu, head_config, &info)) in parse_events_add_pmu()
1530 if (!parse_state->fake_pmu && perf_pmu__config(pmu, &attr, head_config, parse_state->error)) { in parse_events_add_pmu()
1549 if (parse_state->fake_pmu) in parse_events_add_pmu()
1620 if (parse_state->fake_pmu) { in parse_events_multi_pmu_add()
2234 struct parse_events_error *err, struct perf_pmu *fake_pmu) in __parse_events() argument
2242 .fake_pmu = fake_pmu, in __parse_events()
Dparse-events.l155 return parse_state->fake_pmu in pmu_str_check()
158 return parse_state->fake_pmu && !strchr(text,'!') in pmu_str_check()
Dmetricgroup.c1466 static int parse_ids(bool metric_no_merge, struct perf_pmu *fake_pmu, in parse_ids() argument
1523 ret = __parse_events(parsed_evlist, events.buf, &parse_error, fake_pmu); in parse_ids()
1546 struct perf_pmu *fake_pmu, in parse_groups() argument
1575 ret = parse_ids(metric_no_merge, fake_pmu, combined, in parse_groups()
1625 ret = parse_ids(metric_no_merge, fake_pmu, m->pctx, m->modifier, in parse_groups()
/Linux-v6.1/tools/perf/tests/
Dpmu-events.c789 struct perf_pmu *fake_pmu) in check_parse_id() argument
810 if (fake_pmu) { in check_parse_id()
819 ret = __parse_events(evlist, dup, error, fake_pmu); in check_parse_id()