mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 01:04:19 +08:00
1a89f1e2be
Now that the event's config2 attribute is used to communicate sink selection to the kernel, remove the old set_drv_config() implementation since it is no longer needed. Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Acked-by: Suzuki K Poulouse <suzuki.poulose@arm.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Alexei Starovoitov <ast@kernel.org> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Heiko Carstens <heiko.carstens@de.ibm.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Will Deacon <will.deacon@arm.com> Cc: linux-arm-kernel@lists.infradead.org Cc: linux-s390@vger.kernel.org Link: http://lkml.kernel.org/r/20190131184714.20388-7-mathieu.poirier@linaro.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
31 lines
707 B
C
31 lines
707 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Copyright(C) 2015 Linaro Limited. All rights reserved.
|
|
* Author: Mathieu Poirier <mathieu.poirier@linaro.org>
|
|
*/
|
|
|
|
#include <string.h>
|
|
#include <linux/coresight-pmu.h>
|
|
#include <linux/perf_event.h>
|
|
#include <linux/string.h>
|
|
|
|
#include "arm-spe.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, CORESIGHT_ETM_PMU_NAME)) {
|
|
/* add ETM default config here */
|
|
pmu->selectable = true;
|
|
#if defined(__aarch64__)
|
|
} else if (strstarts(pmu->name, ARM_SPE_PMU_NAME)) {
|
|
return arm_spe_pmu_default_config(pmu);
|
|
#endif
|
|
}
|
|
|
|
#endif
|
|
return NULL;
|
|
}
|