]> 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)
commit2be00431c576f7fc2299673301134b0d190699a9
treec84f3069f42e7bc29fb9ead9992ffac1728e4b40
parentd511578b9d215e2ff27e10c1b9d5d414383018dc
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