]> asedeno.scripts.mit.edu Git - linux.git/commit
perf: cs-etm: Optimize option setup for CPU-wide sessions
authorMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 11 Jun 2019 20:45:28 +0000 (14:45 -0600)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 17 Jun 2019 18:57:16 +0000 (15:57 -0300)
commit374d910f87b87283df2b1e8a60a6a546d4a14c90
tree986bacd69164f90a58dacccd68765807ec5d2a02
parent010e3e8fc12b1c13ce19821a11d8930226ebb4b6
perf: cs-etm: Optimize option setup for CPU-wide sessions

Call function cs_etm_set_option() once with all relevant options set
rather than multiple times to avoid going through the list of CPU more
than once.

Suggested-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: linux-arm-kernel@lists.infradead.org
Link: http://lkml.kernel.org/r/20190611204528.20093-1-mathieu.poirier@linaro.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/arch/arm/util/cs-etm.c