diff options
author | Mathieu Poirier <mathieu.poirier@linaro.org> | 2016-09-16 09:50:04 -0600 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-09-22 13:08:55 -0300 |
commit | 3becf4525d9c0fb9cf8ff657b2aec1c733bc742f (patch) | |
tree | ac9dd15cbd985555e3ac45bcf62791add19220ed /tools/perf/arch/arm/util/pmu.c | |
parent | perf tools: Add PMU configuration to tools (diff) | |
download | linux-dev-3becf4525d9c0fb9cf8ff657b2aec1c733bc742f.tar.xz linux-dev-3becf4525d9c0fb9cf8ff657b2aec1c733bc742f.zip |
perf tools: Add sink configuration for cs_etm PMU
Using the PMU::set_drv_config() callback to enable the CoreSight sink
that will be used for the trace session.
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: linux-arm-kernel@lists.infradead.org
Link: http://lkml.kernel.org/r/1474041004-13956-8-git-send-email-mathieu.poirier@linaro.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to '')
-rw-r--r-- | tools/perf/arch/arm/util/pmu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/arch/arm/util/pmu.c b/tools/perf/arch/arm/util/pmu.c index af9fb666b44f..98d67399a0d6 100644 --- a/tools/perf/arch/arm/util/pmu.c +++ b/tools/perf/arch/arm/util/pmu.c @@ -19,6 +19,7 @@ #include <linux/coresight-pmu.h> #include <linux/perf_event.h> +#include "cs-etm.h" #include "../../util/pmu.h" struct perf_event_attr @@ -28,6 +29,7 @@ struct perf_event_attr if (!strcmp(pmu->name, CORESIGHT_ETM_PMU_NAME)) { /* add ETM default config here */ pmu->selectable = true; + pmu->set_drv_config = cs_etm_set_drv_config; } #endif return NULL; |