1 // SPDX-License-Identifier: GPL-2.0
4 #include <linux/perf_event.h>
6 #include "../../util/intel-pt.h"
7 #include "../../util/intel-bts.h"
8 #include "../../util/pmu.h"
10 struct perf_event_attr *perf_pmu__get_default_config(struct perf_pmu *pmu __maybe_unused)
12 #ifdef HAVE_AUXTRACE_SUPPORT
13 if (!strcmp(pmu->name, INTEL_PT_PMU_NAME))
14 return intel_pt_pmu_default_config(pmu);
15 if (!strcmp(pmu->name, INTEL_BTS_PMU_NAME))
16 pmu->selectable = true;