Merge tag 'block-5.9-2020-08-14' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / tools / perf / util / intel-bts.h
blob53d5aa02766acc4a1eb5afca40a41cf46ca2a9de
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * intel-bts.h: Intel Processor Trace support
4 * Copyright (c) 2013-2014, Intel Corporation.
5 */
7 #ifndef INCLUDE__PERF_INTEL_BTS_H__
8 #define INCLUDE__PERF_INTEL_BTS_H__
10 #define INTEL_BTS_PMU_NAME "intel_bts"
12 enum {
13 INTEL_BTS_PMU_TYPE,
14 INTEL_BTS_TIME_SHIFT,
15 INTEL_BTS_TIME_MULT,
16 INTEL_BTS_TIME_ZERO,
17 INTEL_BTS_CAP_USER_TIME_ZERO,
18 INTEL_BTS_SNAPSHOT_MODE,
19 INTEL_BTS_AUXTRACE_PRIV_MAX,
22 #define INTEL_BTS_AUXTRACE_PRIV_SIZE (INTEL_BTS_AUXTRACE_PRIV_MAX * sizeof(u64))
24 struct auxtrace_record;
25 struct perf_tool;
26 union perf_event;
27 struct perf_session;
29 struct auxtrace_record *intel_bts_recording_init(int *err);
31 int intel_bts_process_auxtrace_info(union perf_event *event,
32 struct perf_session *session);
34 #endif