perf arm64: Fix build with refcount checking
authorJames Clark <james.clark@arm.com>
Thu, 4 May 2023 16:08:45 +0000 (17:08 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 10 May 2023 17:39:10 +0000 (14:39 -0300)
commita3cee97446cc9ee1332b5f317024ccd23ac6c48c
treebd76fb352a56c18b8164ec16ef7c3caf6b96bae2
parent8669862388b01de7a248fea8b743aafd42169875
perf arm64: Fix build with refcount checking

With EXTRA_CFLAGS=-DREFCNT_CHECKING=1 and build-test, some unwrapped
map accesses appear. Wrap it in the new accessor to fix the error:

  error: 'struct perf_cpu_map' has no member named 'map'

Signed-off-by: James Clark <james.clark@arm.com>
Acked-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: John Garry <john.g.garry@oracle.com>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mike Leach <mike.leach@linaro.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Will Deacon <will@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org
Link: https://lore.kernel.org/r/20230504160845.2065510-1-james.clark@arm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/arch/arm64/util/header.c
tools/perf/arch/arm64/util/pmu.c