1 // SPDX-License-Identifier: GPL-2.0
6 int topdown_filter_events(const char **attr
, char **str
, bool use_group
)
13 for (i
= 0; attr
[i
]; i
++) {
14 if (pmu_have_event("cpu", attr
[i
])) {
15 len
+= strlen(attr
[i
]) + 1;
16 attr
[i
- off
] = attr
[i
];
22 *str
= malloc(len
+ 1 + 2);
32 for (i
= 0; attr
[i
]; i
++) {
45 __weak
bool arch_topdown_check_group(bool *warn
)
51 __weak
void arch_topdown_group_warn(void)
55 __weak
bool arch_topdown_sample_read(struct evsel
*leader __maybe_unused
)