]> granicus.if.org Git - strace/commitdiff
Wire up rseq syscall
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 13 Jun 2018 23:51:31 +0000 (23:51 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 13 Jun 2018 23:51:31 +0000 (23:51 +0000)
This new syscall was introduced by Linux commit v4.17-1308-gd7822b1.

* linux/dummy.h (sys_rseq): New macro.
* linux/arm/syscallent.h (398): Add rseq entry.
* linux/i386/syscallent.h (386): Likewise.
* linux/powerpc/syscallent.h (387): Likewise.
* linux/powerpc64/syscallent.h (387): Likewise.
* linux/x32/syscallent.h (334): Likewise.
* linux/x86_64/syscallent.h (334): Likewise.

linux/arm/syscallent.h
linux/dummy.h
linux/i386/syscallent.h
linux/powerpc/syscallent.h
linux/powerpc64/syscallent.h
linux/x32/syscallent.h
linux/x86_64/syscallent.h

index 76edf99bd7d6f1899292cca6c7d05c05c2f6f287..568d9469db6a529488d1004eec93a28efd1bfe5b 100644 (file)
 [395] = { 2,   0,              SEN(pkey_alloc),                "pkey_alloc"            },
 [396] = { 1,   0,              SEN(pkey_free),                 "pkey_free"             },
 [397] = { 5,   TD|TF|TSTA,     SEN(statx),                     "statx"                 },
+[398] = { 4,   0,              SEN(rseq),                      "rseq"                  },
 
 #ifdef __ARM_EABI__
 # define ARM_FIRST_SHUFFLED_SYSCALL 400
index 40c0726b5e19c1e3cf9f21cacf680783aa6e89c9..46298081c221e0e959b6cab7df80591377b205c3 100644 (file)
@@ -36,6 +36,7 @@
 #endif
 
 /* still unfinished */
+#define        sys_rseq                printargs
 #define        sys_vm86                printargs
 #define        sys_vm86old             printargs
 
index fd8025aa5b4b821abae13e426979d3f5c8c5c4e8..fbe6cf8acae57200db4f7fa061cca84886138a8c 100644 (file)
 [383] = { 5,   TD|TF|TSTA,     SEN(statx),                     "statx"                 },
 [384] = { 2,   TP,             SEN(arch_prctl),                "arch_prctl"            },
 [385] = { 6,   0,              SEN(io_pgetevents),             "io_pgetevents"         },
+[386] = { 4,   0,              SEN(rseq),                      "rseq"                  },
 
 #define SYS_socket_subcall     400
 #include "subcall.h"
index d0bcbba7bd7dfc302d13ac64485c02903f94c76f..3333794d6a10671c2895e48b2cb77bf68ac93a80 100644 (file)
 [384] = { 2,   0,              SEN(pkey_alloc),                "pkey_alloc"            },
 [385] = { 1,   0,              SEN(pkey_free),                 "pkey_free"             },
 [386] = { 4,   TM|SI,          SEN(pkey_mprotect),             "pkey_mprotect"         },
+[387] = { 4,   0,              SEN(rseq),                      "rseq"                  },
 
 #define SYS_socket_subcall     400
 #include "subcall.h"
index 74362c6f8c8c051d6f523b09b313b135af57fcd1..6bdd4c1a07ff2ba88207d2acee85e2c1813692a1 100644 (file)
 [384] = { 2,   0,              SEN(pkey_alloc),                "pkey_alloc"            },
 [385] = { 1,   0,              SEN(pkey_free),                 "pkey_free"             },
 [386] = { 4,   TM|SI,          SEN(pkey_mprotect),             "pkey_mprotect"         },
+[387] = { 4,   0,              SEN(rseq),                      "rseq"                  },
 
 #define SYS_socket_subcall     400
 #include "subcall.h"
index 96d8903e195225a49ec9254518b0c667337d95b0..072a2c3efd99faea28a6267f7273e0e811e2837a 100644 (file)
 [545] = { 5,   CST|TD|TF|TP|SE|SI,     SEN(execveat),          "execveat"              },
 [546] = { 5,   TD,             SEN(preadv2),                   "preadv2"               },
 [547] = { 5,   TD,             SEN(pwritev2),                  "pwritev2"              },
+[334] = { 4,   0,              SEN(rseq),                      "rseq"                  },
index b8e610a156675bbc70d8a4cfbec1cc88959a83ba..63ec52e83d6b35bbba09d45181037049afc6fdaf 100644 (file)
 [331] = { 1,   0,              SEN(pkey_free),                 "pkey_free"             },
 [332] = { 5,   TD|TF|TSTA,     SEN(statx),                     "statx"                 },
 [333] = { 6,   0,              SEN(io_pgetevents),             "io_pgetevents"         },
+[334] = { 4,   0,              SEN(rseq),                      "rseq"                  },