Messages in this thread Patch in this message | | | From | Mathieu Desnoyers <> | Subject | [RFC PATCH 3/4] selftests: rseq: define __rseq_abi with extensible size | Date | Mon, 13 Jul 2020 23:03:47 -0400 |
| |
Define the __rseq_abi with the extensible size feature.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> --- tools/testing/selftests/rseq/rseq.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/tools/testing/selftests/rseq/rseq.c b/tools/testing/selftests/rseq/rseq.c index da2264c679b9..2c29215d4790 100644 --- a/tools/testing/selftests/rseq/rseq.c +++ b/tools/testing/selftests/rseq/rseq.c @@ -26,6 +26,7 @@ #include <assert.h> #include <signal.h> #include <limits.h> +#include <stddef.h> #include "rseq.h" @@ -33,6 +34,8 @@ __thread volatile struct rseq __rseq_abi = { .cpu_id = RSEQ_CPU_ID_UNINITIALIZED, + .flags = RSEQ_TLS_FLAG_SIZE, + .user_size = offsetof(struct rseq, end), }; /* -- 2.17.1
| |