]> 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)
commit1f0a810f033b3aceec47c9293bb1021d1516f445
treed753694ef8a1b64c74902c57320d03807a79d7a4
parent48c87164f20439f8fbf6f282949ee067355bcf25
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