git: https://android.googlesource.com/kernel/common branch: android-4.9 commit: 03fcc2fe71308c2d164b4e6cbfc738c63e670444
19 lines
450 B
C
19 lines
450 B
C
#include <string.h>
|
|
|
|
#include <linux/perf_event.h>
|
|
|
|
#include "../../util/intel-pt.h"
|
|
#include "../../util/intel-bts.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);
|
|
if (!strcmp(pmu->name, INTEL_BTS_PMU_NAME))
|
|
pmu->selectable = true;
|
|
#endif
|
|
return NULL;
|
|
}
|