1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * intel_tpebs.h: Intel TEPBS support
4 */
5#ifndef __INTEL_TPEBS_H
6#define __INTEL_TPEBS_H
7
8struct evlist;
9struct evsel;
10
11enum tpebs_mode {
12 TPEBS_MODE__MEAN,
13 TPEBS_MODE__MIN,
14 TPEBS_MODE__MAX,
15 TPEBS_MODE__LAST,
16};
17
18extern bool tpebs_recording;
19extern enum tpebs_mode tpebs_mode;
20
21int evsel__tpebs_open(struct evsel *evsel);
22void evsel__tpebs_close(struct evsel *evsel);
23int evsel__tpebs_read(struct evsel *evsel, int cpu_map_idx, int thread);
24
25#endif /* __INTEL_TPEBS_H */
26

source code of linux/tools/perf/util/intel-tpebs.h