Home
last modified time | relevance | path

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

/linux-6.6.21/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-6.6.21/drivers/perf/
Darm_pmu.c394 struct pmu_hw_events fake_pmu; in validate_group() local
400 memset(&fake_pmu.used_mask, 0, sizeof(fake_pmu.used_mask)); in validate_group()
402 if (!validate_event(event->pmu, &fake_pmu, leader)) in validate_group()
409 if (!validate_event(event->pmu, &fake_pmu, sibling)) in validate_group()
413 if (!validate_event(event->pmu, &fake_pmu, event)) in validate_group()
Darm-cci.c1254 struct cci_pmu_hw_events fake_pmu = { in validate_group() local
1263 if (!validate_event(event->pmu, &fake_pmu, leader)) in validate_group()
1267 if (!validate_event(event->pmu, &fake_pmu, sibling)) in validate_group()
1271 if (!validate_event(event->pmu, &fake_pmu, event)) in validate_group()
/linux-6.6.21/tools/perf/util/
Dparse-events.h34 struct parse_events_error *error, struct perf_pmu *fake_pmu,
155 struct perf_pmu *fake_pmu; member
Dmetricgroup.c1447 static int parse_ids(bool metric_no_merge, struct perf_pmu *fake_pmu, in parse_ids() argument
1505 &parse_error, fake_pmu, /*warn_if_reordered=*/false); in parse_ids()
1530 struct perf_pmu *fake_pmu, in parse_groups() argument
1560 ret = parse_ids(metric_no_merge, fake_pmu, combined, in parse_groups()
1618 ret = parse_ids(metric_no_merge, fake_pmu, m->pctx, m->modifier, in parse_groups()
1625 ret = setup_metric_events(fake_pmu ? "all" : m->pmu, m->pctx->ids, in parse_groups()
Dparse-events.c1383 pmu = parse_state->fake_pmu ?: perf_pmus__find(name); in parse_events_add_pmu()
1429 if (!parse_state->fake_pmu && perf_pmu__check_alias(pmu, head_config, &info, err)) in parse_events_add_pmu()
1458 if (!parse_state->fake_pmu && perf_pmu__config(pmu, &attr, head_config, parse_state->error)) { in parse_events_add_pmu()
1475 if (parse_state->fake_pmu) in parse_events_add_pmu()
1551 if (parse_state->fake_pmu) { in parse_events_multi_pmu_add()
2080 struct parse_events_error *err, struct perf_pmu *fake_pmu, in __parse_events() argument
2088 .fake_pmu = fake_pmu, in __parse_events()
/linux-6.6.21/tools/perf/tests/
Dpmu-events.c762 struct perf_pmu *fake_pmu) in check_parse_id() argument
783 ret = __parse_events(evlist, dup, /*pmu_filter=*/NULL, error, fake_pmu, in check_parse_id()