]> git.baikalelectronics.ru Git - kernel.git/commit
arm64/sme: Add ptrace support for ZA
authorMark Brown <broonie@kernel.org>
Tue, 19 Apr 2022 11:22:29 +0000 (12:22 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 22 Apr 2022 17:51:17 +0000 (18:51 +0100)
commit947c95afdaec2adcdd7b0b58cb25ec3e16e3bb6c
treed753694ef8a1b64c74902c57320d03807a79d7a4
parenta24a94f05d573bdd536a174faa9c94997033a41c
arm64/sme: Add ptrace support for ZA

The ZA array can be read and written with the NT_ARM_ZA.  Similarly to
our interface for the SVE vector registers the regset consists of a
header with information on the current vector length followed by an
optional register data payload, represented as for signals as a series
of horizontal vectors from 0 to VL/8 in the endianness independent
format used for vectors.

On get if ZA is enabled then register data will be provided, otherwise
it will be omitted.  On set if register data is provided then ZA is
enabled and initialized using the provided data, otherwise it is
disabled.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20220419112247.711548-22-broonie@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/uapi/asm/ptrace.h
arch/arm64/kernel/ptrace.c
include/uapi/linux/elf.h