]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools arm64: Add support for VG register
authorJames Clark <james.clark@arm.com>
Wed, 25 May 2022 15:41:14 +0000 (16:41 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 27 May 2022 16:21:33 +0000 (13:21 -0300)
commit295fee99ea7d694a0d33ab0f03e7a6549a1c07fb
treec84f3069f42e7bc29fb9ead9992ffac1728e4b40
parentdd72ec9f9b3bd0c67c109429243ade019afd7053
perf tools arm64: Add support for VG register

Add the name of the VG register so it can be used in --user-regs

The event will fail to open if the register is requested but not
available so only add it to the mask if the kernel supports sve and also
if it supports that specific register.

Committer notes:

Add conditional definition of HWCAP_SVE, as suggested by Leo Yan, to
build on older systems where this is not available in the system
headers.

Reviewed-by: Leo Yan <leo.yan@linaro.org>
Signed-off-by: James Clark <james.clark@arm.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: German Gomez <german.gomez@arm.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: John Garry <john.garry@huawei.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
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/20220525154114.718321-6-james.clark@arm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/arch/arm64/util/perf_regs.c
tools/perf/util/perf_regs.c