lkml.org 
[lkml]   [2020]   [Jul]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[RFC PATCH 3/4] selftests: rseq: define __rseq_abi with extensible size
Date
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
\
 
 \ /
  Last update: 2020-07-14 05:05    [W:0.741 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site