This source file includes following definitions.
- perf_pmu__get_default_config
1
2
3
4
5
6
7 #include <string.h>
8 #include <linux/coresight-pmu.h>
9 #include <linux/perf_event.h>
10 #include <linux/string.h>
11
12 #include "arm-spe.h"
13 #include "../../util/pmu.h"
14
15 struct perf_event_attr
16 *perf_pmu__get_default_config(struct perf_pmu *pmu __maybe_unused)
17 {
18 #ifdef HAVE_AUXTRACE_SUPPORT
19 if (!strcmp(pmu->name, CORESIGHT_ETM_PMU_NAME)) {
20
21 pmu->selectable = true;
22 #if defined(__aarch64__)
23 } else if (strstarts(pmu->name, ARM_SPE_PMU_NAME)) {
24 return arm_spe_pmu_default_config(pmu);
25 #endif
26 }
27
28 #endif
29 return NULL;
30 }