linux/tools/testing/selftests/rseq
Mathieu Desnoyers 4e15bb766b selftests/rseq: x86-64: use %fs segment selector for accessing rseq thread area
Rather than use rseq_get_abi() and pass its result through a register to
the inline assembler, directly access the per-thread rseq area through a
memory reference combining the %fs segment selector, the constant offset
of the field in struct rseq, and the rseq_offset value (in a register).

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20220124171253.22072-15-mathieu.desnoyers@efficios.com
2022-02-02 13:11:37 +01:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
basic_percpu_ops_test.c selftests/rseq: Fix ppc32 offsets by using long rather than off_t 2022-02-02 13:11:36 +01:00
basic_test.c rseq/selftests: Provide basic test 2018-06-06 11:58:35 +02:00
compiler.h selftests/rseq: Fix: work-around asm goto compiler bugs 2022-02-02 13:11:37 +01:00
Makefile selftests/rseq: Uplift rseq selftests for compatibility with glibc-2.35 2022-02-02 13:11:35 +01:00
param_test.c selftests/rseq: Fix warnings about #if checks of undefined tokens 2022-02-02 13:11:36 +01:00
rseq-abi.h selftests/rseq: introduce own copy of rseq uapi header 2022-02-02 13:11:33 +01:00
rseq-arm64.h selftests/rseq: Fix: work-around asm goto compiler bugs 2022-02-02 13:11:37 +01:00
rseq-arm.h selftests/rseq: Fix: work-around asm goto compiler bugs 2022-02-02 13:11:37 +01:00
rseq-generic-thread-pointer.h selftests/rseq: Introduce thread pointer getters 2022-02-02 13:11:35 +01:00
rseq-mips.h selftests/rseq: Remove arm/mips asm goto compiler work-around 2022-02-02 13:11:36 +01:00
rseq-ppc-thread-pointer.h selftests/rseq: Introduce thread pointer getters 2022-02-02 13:11:35 +01:00
rseq-ppc.h selftests/rseq: Fix: work-around asm goto compiler bugs 2022-02-02 13:11:37 +01:00
rseq-s390.h selftests/rseq: Fix: work-around asm goto compiler bugs 2022-02-02 13:11:37 +01:00
rseq-skip.h selftests/rseq: Fix ppc32 offsets by using long rather than off_t 2022-02-02 13:11:36 +01:00
rseq-thread-pointer.h selftests/rseq: Introduce thread pointer getters 2022-02-02 13:11:35 +01:00
rseq-x86-thread-pointer.h selftests/rseq: Introduce thread pointer getters 2022-02-02 13:11:35 +01:00
rseq-x86.h selftests/rseq: x86-64: use %fs segment selector for accessing rseq thread area 2022-02-02 13:11:37 +01:00
rseq.c selftests/rseq: Uplift rseq selftests for compatibility with glibc-2.35 2022-02-02 13:11:35 +01:00
rseq.h selftests/rseq: Fix: work-around asm goto compiler bugs 2022-02-02 13:11:37 +01:00
run_param_test.sh rseq/selftests: Test MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ 2020-09-25 14:23:27 +02:00
settings rseq/selftests: Turn off timeout setting 2019-12-23 10:52:41 -07:00