]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/rseq: check if libc rseq support is registered
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 14 Jun 2022 15:48:30 +0000 (11:48 -0400)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 28 Jun 2022 07:08:28 +0000 (09:08 +0200)
commit989f53daa36ffbe466d4e167ed6707984c5bf14d
treec4b9ef94dba68f377905abaae0efb0c4bf349f0d
parentdf0a980e944a312f850514d924f9e6993cc0c203
selftests/rseq: check if libc rseq support is registered

When checking for libc rseq support in the library constructor, don't
only depend on the symbols presence, check that the registration was
completed.

This targets a scenario where the libc has rseq support but it is not
wired for the current architecture in 'bits/rseq.h', we want to fallback
to our internal registration mechanism.

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://lore.kernel.org/r/20220614154830.1367382-4-mjeanson@efficios.com
tools/testing/selftests/rseq/rseq.c