Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / tools / perf / util / intel-tpebs.h
blob766b3fbd79f12a9c09b1dc488b0bd4708d6e67e5
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * intel_tpebs.h: Intel TEPBS support
4 */
5 #ifndef INCLUDE__PERF_INTEL_TPEBS_H__
6 #define INCLUDE__PERF_INTEL_TPEBS_H__
8 #include "stat.h"
9 #include "evsel.h"
11 #ifdef HAVE_ARCH_X86_64_SUPPORT
13 extern bool tpebs_recording;
14 int tpebs_start(struct evlist *evsel_list);
15 void tpebs_delete(void);
16 int tpebs_set_evsel(struct evsel *evsel, int cpu_map_idx, int thread);
18 #else
20 static inline int tpebs_start(struct evlist *evsel_list __maybe_unused)
22 return 0;
25 static inline void tpebs_delete(void) {};
27 static inline int tpebs_set_evsel(struct evsel *evsel __maybe_unused,
28 int cpu_map_idx __maybe_unused,
29 int thread __maybe_unused)
31 return 0;
34 #endif
35 #endif