perf cs-etm: Properly deal with cpu maps
authorMathieu Poirier <mathieu.poirier@linaro.org>
Mon, 12 Feb 2018 23:38:57 +0000 (16:38 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 16 Feb 2018 17:55:41 +0000 (14:55 -0300)
commit796bfadd831bdef0de06cd0253398c3fe011e459
treeb68d76d434759dd2846f189a5b8e99afa0ab74df
parentd2785de15f1bd42d613d56bbac5a007e7293b874
perf cs-etm: Properly deal with cpu maps

This patch allows the CoreSight AUX info section to fit topologies where
only a subset of all available CPUs are present, avoiding at the same
time accessing the ETM configuration areas of CPUs that have been
offlined.

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/1518478737-24649-1-git-send-email-mathieu.poirier@linaro.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/arch/arm/util/cs-etm.c