mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
selftests/rseq: Implement rseq numa node id field selftest
Test the NUMA node id extension rseq field. Compare it against the value returned by the getcpu(2) system call while pinned on a specific core. 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-7-mathieu.desnoyers@efficios.com
This commit is contained in:
committed by
Peter Zijlstra
parent
03f5c0272d
commit
99babd04b2
@@ -147,6 +147,14 @@ struct rseq_abi {
|
||||
*/
|
||||
__u32 flags;
|
||||
|
||||
/*
|
||||
* Restartable sequences node_id field. Updated by the kernel. Read by
|
||||
* user-space with single-copy atomicity semantics. This field should
|
||||
* only be read by the thread which registered this data structure.
|
||||
* Aligned on 32-bit. Contains the current NUMA node ID.
|
||||
*/
|
||||
__u32 node_id;
|
||||
|
||||
/*
|
||||
* Flexible array member at end of structure, after last feature field.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user