Merge tag 'block-5.11-2021-01-10' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / tools / perf / util / arm-spe.h
blob98d3235781c3c0ffbfb5714eae259297d19ecbcb
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Arm Statistical Profiling Extensions (SPE) support
4 * Copyright (c) 2017-2018, Arm Ltd.
5 */
7 #ifndef INCLUDE__PERF_ARM_SPE_H__
8 #define INCLUDE__PERF_ARM_SPE_H__
10 #define ARM_SPE_PMU_NAME "arm_spe_"
12 enum {
13 ARM_SPE_PMU_TYPE,
14 ARM_SPE_PER_CPU_MMAPS,
15 ARM_SPE_AUXTRACE_PRIV_MAX,
18 #define ARM_SPE_AUXTRACE_PRIV_SIZE (ARM_SPE_AUXTRACE_PRIV_MAX * sizeof(u64))
20 union perf_event;
21 struct perf_session;
22 struct perf_pmu;
24 struct auxtrace_record *arm_spe_recording_init(int *err,
25 struct perf_pmu *arm_spe_pmu);
27 int arm_spe_process_auxtrace_info(union perf_event *event,
28 struct perf_session *session);
30 struct perf_event_attr *arm_spe_pmu_default_config(struct perf_pmu *arm_spe_pmu);
31 #endif