summaryrefslogtreecommitdiffstats
path: root/tools/perf/arch/x86/util/pmu.c
blob: fd11cc3ce780d1fb5b6a25a83224a757075742c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <string.h>

#include <linux/perf_event.h>

#include "../../util/intel-pt.h"
#include "../../util/pmu.h"

struct perf_event_attr *perf_pmu__get_default_config(struct perf_pmu *pmu __maybe_unused)
{
#ifdef HAVE_AUXTRACE_SUPPORT
	if (!strcmp(pmu->name, INTEL_PT_PMU_NAME))
		return intel_pt_pmu_default_config(pmu);
#endif
	return NULL;
}
OpenPOWER on IntegriCloud