| 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 | |
| 8 | struct evlist; |
| 9 | struct evsel; |
| 10 | |
| 11 | enum tpebs_mode { |
| 12 | TPEBS_MODE__MEAN, |
| 13 | TPEBS_MODE__MIN, |
| 14 | TPEBS_MODE__MAX, |
| 15 | TPEBS_MODE__LAST, |
| 16 | }; |
| 17 | |
| 18 | extern bool tpebs_recording; |
| 19 | extern enum tpebs_mode tpebs_mode; |
| 20 | |
| 21 | int evsel__tpebs_open(struct evsel *evsel); |
| 22 | void evsel__tpebs_close(struct evsel *evsel); |
| 23 | int evsel__tpebs_read(struct evsel *evsel, int cpu_map_idx, int thread); |
| 24 | |
| 25 | #endif /* __INTEL_TPEBS_H */ |
| 26 | |