1 // SPDX-License-Identifier: GPL-2.0
4 #include "pmu-hybrid.h"
7 int topdown_filter_events(const char **attr, char **str, bool use_group,
14 bool is_hybrid = perf_pmu__is_hybrid(pmu_name);
16 for (i = 0; attr[i]; i++) {
17 if (pmu_have_event(pmu_name, attr[i])) {
19 len += strlen(attr[i]) + strlen(pmu_name) + 3;
21 len += strlen(attr[i]) + 1;
22 attr[i - off] = attr[i];
28 *str = malloc(len + 1 + 2);
38 for (i = 0; attr[i]; i++) {
42 sprintf(s, "%s/%s/", pmu_name, attr[i]);
54 __weak bool arch_topdown_check_group(bool *warn)
60 __weak void arch_topdown_group_warn(void)
64 __weak bool arch_topdown_sample_read(struct evsel *leader __maybe_unused)