rseq available check: use documented behavior
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 10 Oct 2018 16:15:46 +0000 (12:15 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 10 Oct 2018 16:15:46 +0000 (12:15 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/rseq.c

index e503918ad17cb468379f2582f5f2c7a788a4f2a4..7992b3122cc38ed934478a9616c0c86f39520ac5 100644 (file)
@@ -30,8 +30,6 @@
 
 #define ARRAY_SIZE(arr)        (sizeof(arr) / sizeof((arr)[0]))
 
-#define RSEQ_FLAG_UNDEFINED 0x80000000
-
 /*
  * linux/rseq.h defines struct rseq as aligned on 32 bytes. The kernel ABI
  * size is 20 bytes. For support of multiple rseq users within a process,
@@ -66,7 +64,7 @@ int rseq_available(void)
 {
        int rc;
 
-       rc = sys_rseq(NULL, 0, RSEQ_FLAG_UNDEFINED, 0);
+       rc = sys_rseq(NULL, 0, 0, 0);
        if (rc != -1)
                abort();
        switch (errno) {
This page took 0.0242 seconds and 4 git commands to generate.