1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Arm Statistical Profiling Extensions (SPE) support
4 * Copyright (c) 2017-2018, Arm Ltd.
7 #ifndef INCLUDE__PERF_ARM_SPE_H__
8 #define INCLUDE__PERF_ARM_SPE_H__
10 #define ARM_SPE_PMU_NAME "arm_spe_"
14 ARM_SPE_PER_CPU_MMAPS
,
15 ARM_SPE_AUXTRACE_V1_PRIV_MAX
,
18 #define ARM_SPE_AUXTRACE_V1_PRIV_SIZE \
19 (ARM_SPE_AUXTRACE_V1_PRIV_MAX * sizeof(u64))
23 * The old metadata format (defined above) does not include a
24 * field for version number. Version 1 is reserved and starts
27 ARM_SPE_HEADER_VERSION
,
28 /* Number of sizeof(u64) */
30 /* PMU type shared by CPUs */
34 ARM_SPE_AUXTRACE_PRIV_MAX
,
40 /* CPU logical number in system */
42 /* Number of parameters */
43 ARM_SPE_CPU_NR_PARAMS
,
46 /* Associated PMU type */
48 /* Minimal interval */
53 #define ARM_SPE_HEADER_CURRENT_VERSION 2
60 struct auxtrace_record
*arm_spe_recording_init(int *err
,
61 struct perf_pmu
*arm_spe_pmu
);
63 int arm_spe_process_auxtrace_info(union perf_event
*event
,
64 struct perf_session
*session
);
66 void arm_spe_pmu_default_config(const struct perf_pmu
*arm_spe_pmu
,
67 struct perf_event_attr
*attr
);