diff options
Diffstat (limited to 'tools/perf/arch/arm/util/pmu.c')
-rw-r--r-- | tools/perf/arch/arm/util/pmu.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/perf/arch/arm/util/pmu.c b/tools/perf/arch/arm/util/pmu.c index 98d67399a0d6..ac4dffc807b8 100644 --- a/tools/perf/arch/arm/util/pmu.c +++ b/tools/perf/arch/arm/util/pmu.c | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <linux/perf_event.h> | 20 | #include <linux/perf_event.h> |
21 | 21 | ||
22 | #include "cs-etm.h" | 22 | #include "cs-etm.h" |
23 | #include "arm-spe.h" | ||
23 | #include "../../util/pmu.h" | 24 | #include "../../util/pmu.h" |
24 | 25 | ||
25 | struct perf_event_attr | 26 | struct perf_event_attr |
@@ -30,7 +31,12 @@ struct perf_event_attr | |||
30 | /* add ETM default config here */ | 31 | /* add ETM default config here */ |
31 | pmu->selectable = true; | 32 | pmu->selectable = true; |
32 | pmu->set_drv_config = cs_etm_set_drv_config; | 33 | pmu->set_drv_config = cs_etm_set_drv_config; |
34 | #if defined(__aarch64__) | ||
35 | } else if (strstarts(pmu->name, ARM_SPE_PMU_NAME)) { | ||
36 | return arm_spe_pmu_default_config(pmu); | ||
37 | #endif | ||
33 | } | 38 | } |
39 | |||
34 | #endif | 40 | #endif |
35 | return NULL; | 41 | return NULL; |
36 | } | 42 | } |