]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - tools/perf/arch/x86/util/pmu.c
ASoC: codecs: msm8916-wcd-analog: configure micbias in mbhc setup
[mirror_ubuntu-bionic-kernel.git] / tools / perf / arch / x86 / util / pmu.c
1 #include <string.h>
2
3 #include <linux/perf_event.h>
4
5 #include "../../util/intel-pt.h"
6 #include "../../util/intel-bts.h"
7 #include "../../util/pmu.h"
8
9 struct perf_event_attr *perf_pmu__get_default_config(struct perf_pmu *pmu __maybe_unused)
10 {
11 #ifdef HAVE_AUXTRACE_SUPPORT
12 if (!strcmp(pmu->name, INTEL_PT_PMU_NAME))
13 return intel_pt_pmu_default_config(pmu);
14 if (!strcmp(pmu->name, INTEL_BTS_PMU_NAME))
15 pmu->selectable = true;
16 #endif
17 return NULL;
18 }