1 /* SPDX-License-Identifier: GPL-2.0 */ 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 2 /* 3 * Arm Statistical Profiling Extensions (SPE) 3 * Arm Statistical Profiling Extensions (SPE) support 4 * Copyright (c) 2017-2018, Arm Ltd. 4 * Copyright (c) 2017-2018, Arm Ltd. 5 */ 5 */ 6 6 7 #ifndef INCLUDE__PERF_ARM_SPE_H__ 7 #ifndef INCLUDE__PERF_ARM_SPE_H__ 8 #define INCLUDE__PERF_ARM_SPE_H__ 8 #define INCLUDE__PERF_ARM_SPE_H__ 9 9 10 #define ARM_SPE_PMU_NAME "arm_spe_" 10 #define ARM_SPE_PMU_NAME "arm_spe_" 11 11 12 enum { 12 enum { 13 ARM_SPE_PMU_TYPE, 13 ARM_SPE_PMU_TYPE, 14 ARM_SPE_PER_CPU_MMAPS, 14 ARM_SPE_PER_CPU_MMAPS, 15 ARM_SPE_AUXTRACE_PRIV_MAX, 15 ARM_SPE_AUXTRACE_PRIV_MAX, 16 }; 16 }; 17 17 18 #define ARM_SPE_AUXTRACE_PRIV_SIZE (ARM_SPE_AU 18 #define ARM_SPE_AUXTRACE_PRIV_SIZE (ARM_SPE_AUXTRACE_PRIV_MAX * sizeof(u64)) 19 19 20 union perf_event; 20 union perf_event; 21 struct perf_session; 21 struct perf_session; 22 struct perf_pmu; 22 struct perf_pmu; 23 23 24 struct auxtrace_record *arm_spe_recording_init 24 struct auxtrace_record *arm_spe_recording_init(int *err, 25 25 struct perf_pmu *arm_spe_pmu); 26 26 27 int arm_spe_process_auxtrace_info(union perf_e 27 int arm_spe_process_auxtrace_info(union perf_event *event, 28 struct perf_ 28 struct perf_session *session); 29 29 30 void arm_spe_pmu_default_config(const struct p 30 void arm_spe_pmu_default_config(const struct perf_pmu *arm_spe_pmu, 31 struct perf_ev 31 struct perf_event_attr *attr); 32 32 33 #endif 33 #endif 34 34
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.