1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _TOPDOWN_H
3#define _TOPDOWN_H 1
4
5#include <stdbool.h>
6
7struct evsel;
8struct list_head;
9
10bool topdown_sys_has_perf_metrics(void);
11bool arch_is_topdown_slots(const struct evsel *evsel);
12bool arch_is_topdown_metrics(const struct evsel *evsel);
13int topdown_insert_slots_event(struct list_head *list, int idx, struct evsel *metric_event);
14
15#endif
16

source code of linux/tools/perf/arch/x86/util/topdown.h