selftests/rseq: Use ELF auxiliary vector for extensible rseq
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 22 Nov 2022 20:39:07 +0000 (15:39 -0500)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 27 Dec 2022 11:52:11 +0000 (12:52 +0100)
commit03f5c0272d1b59343144e199becc911dae52c37e
treeaf7be24cae0e53fb89bf858856e1c5914feeb158
parentcbae6bac29a8c5cf2f1cb5c6bce35af00cec164b
selftests/rseq: Use ELF auxiliary vector for extensible rseq

Use the ELF auxiliary vector AT_RSEQ_FEATURE_SIZE to detect the RSEQ
features supported by the kernel.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20221122203932.231377-6-mathieu.desnoyers@efficios.com
tools/testing/selftests/rseq/rseq-abi.h
tools/testing/selftests/rseq/rseq.c
tools/testing/selftests/rseq/rseq.h