Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
[linux-2.6-block.git] / tools / perf / util / intel-bts.h
CommitLineData
2025cf9e 1/* SPDX-License-Identifier: GPL-2.0-only */
d0170af7
AH
2/*
3 * intel-bts.h: Intel Processor Trace support
4 * Copyright (c) 2013-2014, Intel Corporation.
d0170af7
AH
5 */
6
7#ifndef INCLUDE__PERF_INTEL_BTS_H__
8#define INCLUDE__PERF_INTEL_BTS_H__
9
10#define INTEL_BTS_PMU_NAME "intel_bts"
11
12enum {
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,
20};
21
22#define INTEL_BTS_AUXTRACE_PRIV_SIZE (INTEL_BTS_AUXTRACE_PRIV_MAX * sizeof(u64))
23
24struct auxtrace_record;
25struct perf_tool;
26union perf_event;
27struct perf_session;
28
29struct auxtrace_record *intel_bts_recording_init(int *err);
30
31int intel_bts_process_auxtrace_info(union perf_event *event,
32 struct perf_session *session);
33
34#endif