Adrian Hunter | 5efb1d5 | 2015-07-17 19:33:42 +0300 | [diff] [blame] | 1 | #include <string.h> |
2 | |||||
3 | #include <linux/perf_event.h> | ||||
4 | |||||
5 | #include "../../util/intel-pt.h" | ||||
6 | #include "../../util/pmu.h" | ||||
7 | |||||
8 | struct perf_event_attr *perf_pmu__get_default_config(struct perf_pmu *pmu __maybe_unused) | ||||
9 | { | ||||
10 | #ifdef HAVE_AUXTRACE_SUPPORT | ||||
11 | if (!strcmp(pmu->name, INTEL_PT_PMU_NAME)) | ||||
12 | return intel_pt_pmu_default_config(pmu); | ||||
13 | #endif | ||||
14 | return NULL; | ||||
15 | } |