x86: Template memory ordering and percpu access mode
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 25 Apr 2023 15:43:18 +0000 (11:43 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 25 Apr 2023 22:38:09 +0000 (18:38 -0400)
commit809f5ee3a5f5852e532ee4e406d5e700652b9ab3
tree65c14d87cc12af3ca54307be66b4f59cdc2d8188
parent77a5b13a15823b87b1763f931ab54a05504b0e80
x86: Template memory ordering and percpu access mode

Introduce a rseq-x86-bits.h template header which is internally included
to generate the static inline functions covering:

- relaxed and release memory ordering,
- per-cpu-id and per-mm-cid per-cpu data access.

This introduces changes to the rseq.h selftests API which require to
update the rseq selftest programs. Similar API/templating changes need
to be done for other architectures.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: If6889ccebedda2f9bc3b1abe7faad1ba626473c3
include/rseq/compiler.h
include/rseq/rseq-bits-reset.h [new file with mode: 0644]
include/rseq/rseq-bits-template.h [new file with mode: 0644]
include/rseq/rseq-x86-bits.h [new file with mode: 0644]
include/rseq/rseq-x86.h
include/rseq/rseq.h
This page took 0.032738 seconds and 4 git commands to generate.