[RFC PATCH 3/4] selftests: rseq: define __rseq_abi with extensible size

From: Mathieu Desnoyers
Date: Mon Jul 13 2020 - 23:04:08 EST


Define the __rseq_abi with the extensible size feature.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxxxx>
---
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