aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/gen
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-06-12 18:06:44 +0200
committerDmitry Vyukov <dvyukov@google.com>2018-06-12 18:06:44 +0200
commitb431b2cc4c68297f3267543f1bbd4a91cd42d1e0 (patch)
tree677c20362ae21d408acdd9814929cbbefaa1a54e /sys/linux/gen
parent06ece2ca663d0565d9e4cd932c4c2d86767a5396 (diff)
sys/linux: add rseq syscall
Diffstat (limited to 'sys/linux/gen')
-rw-r--r--sys/linux/gen/386.go27
-rw-r--r--sys/linux/gen/amd64.go26
-rw-r--r--sys/linux/gen/arm.go27
-rw-r--r--sys/linux/gen/arm64.go5
-rw-r--r--sys/linux/gen/ppc64le.go26
5 files changed, 106 insertions, 5 deletions
diff --git a/sys/linux/gen/386.go b/sys/linux/gen/386.go
index e32d29b33..b7fc00ae2 100644
--- a/sys/linux/gen/386.go
+++ b/sys/linux/gen/386.go
@@ -13355,6 +13355,21 @@ var structDescs_386 = []*KeyedStruct{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "futex_offset", TypeSize: 4, ArgDir: 1}}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "list_op_pending", TypeSize: 4, IsOptional: true}, Type: &StructType{Key: StructKey{Name: "robust_list"}}},
}}},
+ {Key: StructKey{Name: "rseq"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rseq", TypeSize: 32}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cpu_id_start", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cpu_id", TypeSize: 4}}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "rseq_cs", TypeSize: 4, IsOptional: true}, Type: &StructType{Key: StructKey{Name: "rseq_cs"}}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "rseq_cs_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2, 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 16}}, IsPad: true},
+ }, AlignAttr: 32}},
+ {Key: StructKey{Name: "rseq_cs"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rseq_cs", TypeSize: 32}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "version", TypeSize: 4}}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "rseq_cs_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2, 4}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "start_ip", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "post_commit_offset", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "abort_ip", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 12}}, IsPad: true},
+ }, AlignAttr: 32}},
{Key: StructKey{Name: "rtentry_in"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtentry_in", TypeSize: 112}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "rt_pad1", TypeSize: 8}}},
&StructType{Key: StructKey{Name: "sockaddr_in"}, FldName: "rt_dst"},
@@ -27217,6 +27232,12 @@ var syscalls_386 = []*Syscall{
{NR: 40, Name: "rmdir", CallName: "rmdir", Args: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}},
}},
+ {NR: 386, Name: "rseq", CallName: "rseq", Args: []Type{
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "rseq", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "rseq"}}},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "rseq_len", TypeSize: 4}}, BitSize: 8, Buf: "rseq"},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 1},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "sig", TypeSize: 4}}},
+ }},
{NR: 174, Name: "rt_sigaction", CallName: "rt_sigaction", Args: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "sig", TypeSize: 4}}, Kind: 2, RangeEnd: 65},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "act", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "sigaction"}}},
@@ -33701,6 +33722,9 @@ var consts_386 = []ConstValue{
{Name: "RNDCLEARPOOL", Value: 20998},
{Name: "RNDGETENTCNT", Value: 2147766784},
{Name: "RNDZAPENTCNT", Value: 20996},
+ {Name: "RSEQ_CS_FLAG_NO_RESTART_ON_MIGRATE", Value: 4},
+ {Name: "RSEQ_CS_FLAG_NO_RESTART_ON_PREEMPT", Value: 1},
+ {Name: "RSEQ_CS_FLAG_NO_RESTART_ON_SIGNAL", Value: 2},
{Name: "RTA_DST", Value: 1},
{Name: "RTA_ENCAP", Value: 22},
{Name: "RTA_ENCAP_TYPE", Value: 21},
@@ -36556,6 +36580,7 @@ var consts_386 = []ConstValue{
{Name: "__NR_request_key", Value: 287},
{Name: "__NR_restart_syscall"},
{Name: "__NR_rmdir", Value: 40},
+ {Name: "__NR_rseq", Value: 386},
{Name: "__NR_rt_sigaction", Value: 174},
{Name: "__NR_rt_sigpending", Value: 176},
{Name: "__NR_rt_sigprocmask", Value: 175},
@@ -36658,4 +36683,4 @@ var consts_386 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_386 = "955b3b5300af8efd38b4f547a3f09ad5fe151dbb"
+const revision_386 = "bde06e23f09731bf5b0fdf0015b8501b8966e505"
diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go
index 319ff806a..a79a9a6e6 100644
--- a/sys/linux/gen/amd64.go
+++ b/sys/linux/gen/amd64.go
@@ -13573,6 +13573,20 @@ var structDescs_amd64 = []*KeyedStruct{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "futex_offset", TypeSize: 8, ArgDir: 1}}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "list_op_pending", TypeSize: 8, IsOptional: true}, Type: &StructType{Key: StructKey{Name: "robust_list"}}},
}}},
+ {Key: StructKey{Name: "rseq"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rseq", TypeSize: 32}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cpu_id_start", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cpu_id", TypeSize: 4}}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "rseq_cs", TypeSize: 8, IsOptional: true}, Type: &StructType{Key: StructKey{Name: "rseq_cs"}}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "rseq_cs_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2, 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 12}}, IsPad: true},
+ }, AlignAttr: 32}},
+ {Key: StructKey{Name: "rseq_cs"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rseq_cs", TypeSize: 32}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "version", TypeSize: 4}}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "rseq_cs_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2, 4}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "start_ip", TypeSize: 8}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "post_commit_offset", TypeSize: 8}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "abort_ip", TypeSize: 8}}},
+ }, AlignAttr: 32}},
{Key: StructKey{Name: "rtentry_in"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtentry_in", TypeSize: 120}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "rt_pad1", TypeSize: 8}}},
&StructType{Key: StructKey{Name: "sockaddr_in"}, FldName: "rt_dst"},
@@ -27729,6 +27743,12 @@ var syscalls_amd64 = []*Syscall{
{NR: 84, Name: "rmdir", CallName: "rmdir", Args: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}},
}},
+ {NR: 334, Name: "rseq", CallName: "rseq", Args: []Type{
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "rseq", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "rseq"}}},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "rseq_len", TypeSize: 8}}, BitSize: 8, Buf: "rseq"},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "flags", TypeSize: 8}}, Kind: 2, RangeEnd: 1},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "sig", TypeSize: 8}}},
+ }},
{NR: 13, Name: "rt_sigaction", CallName: "rt_sigaction", Args: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "sig", TypeSize: 4}}, Kind: 2, RangeEnd: 65},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "act", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "sigaction"}}},
@@ -34362,6 +34382,9 @@ var consts_amd64 = []ConstValue{
{Name: "RNDCLEARPOOL", Value: 20998},
{Name: "RNDGETENTCNT", Value: 2147766784},
{Name: "RNDZAPENTCNT", Value: 20996},
+ {Name: "RSEQ_CS_FLAG_NO_RESTART_ON_MIGRATE", Value: 4},
+ {Name: "RSEQ_CS_FLAG_NO_RESTART_ON_PREEMPT", Value: 1},
+ {Name: "RSEQ_CS_FLAG_NO_RESTART_ON_SIGNAL", Value: 2},
{Name: "RTA_DST", Value: 1},
{Name: "RTA_ENCAP", Value: 22},
{Name: "RTA_ENCAP_TYPE", Value: 21},
@@ -37235,6 +37258,7 @@ var consts_amd64 = []ConstValue{
{Name: "__NR_request_key", Value: 249},
{Name: "__NR_restart_syscall", Value: 219},
{Name: "__NR_rmdir", Value: 84},
+ {Name: "__NR_rseq", Value: 334},
{Name: "__NR_rt_sigaction", Value: 13},
{Name: "__NR_rt_sigpending", Value: 127},
{Name: "__NR_rt_sigprocmask", Value: 14},
@@ -37344,4 +37368,4 @@ var consts_amd64 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_amd64 = "7097498c6946c1eb9722af2ad0538f54e559ac58"
+const revision_amd64 = "785dabbb3f7361d500be84940319f1447172ce8b"
diff --git a/sys/linux/gen/arm.go b/sys/linux/gen/arm.go
index d52ce7201..639cc238d 100644
--- a/sys/linux/gen/arm.go
+++ b/sys/linux/gen/arm.go
@@ -13198,6 +13198,21 @@ var structDescs_arm = []*KeyedStruct{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "futex_offset", TypeSize: 4, ArgDir: 1}}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "list_op_pending", TypeSize: 4, IsOptional: true}, Type: &StructType{Key: StructKey{Name: "robust_list"}}},
}}},
+ {Key: StructKey{Name: "rseq"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rseq", TypeSize: 32}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cpu_id_start", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cpu_id", TypeSize: 4}}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "rseq_cs", TypeSize: 4, IsOptional: true}, Type: &StructType{Key: StructKey{Name: "rseq_cs"}}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "rseq_cs_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2, 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 16}}, IsPad: true},
+ }, AlignAttr: 32}},
+ {Key: StructKey{Name: "rseq_cs"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rseq_cs", TypeSize: 32}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "version", TypeSize: 4}}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "rseq_cs_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2, 4}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "start_ip", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "post_commit_offset", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "abort_ip", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 12}}, IsPad: true},
+ }, AlignAttr: 32}},
{Key: StructKey{Name: "rtentry_in"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtentry_in", TypeSize: 112}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "rt_pad1", TypeSize: 8}}},
&StructType{Key: StructKey{Name: "sockaddr_in"}, FldName: "rt_dst"},
@@ -26993,6 +27008,12 @@ var syscalls_arm = []*Syscall{
{NR: 40, Name: "rmdir", CallName: "rmdir", Args: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}},
}},
+ {NR: 398, Name: "rseq", CallName: "rseq", Args: []Type{
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "rseq", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "rseq"}}},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "rseq_len", TypeSize: 4}}, BitSize: 8, Buf: "rseq"},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 1},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "sig", TypeSize: 4}}},
+ }},
{NR: 174, Name: "rt_sigaction", CallName: "rt_sigaction", Args: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "sig", TypeSize: 4}}, Kind: 2, RangeEnd: 65},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "act", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "sigaction"}}},
@@ -33561,6 +33582,9 @@ var consts_arm = []ConstValue{
{Name: "RNDCLEARPOOL", Value: 20998},
{Name: "RNDGETENTCNT", Value: 2147766784},
{Name: "RNDZAPENTCNT", Value: 20996},
+ {Name: "RSEQ_CS_FLAG_NO_RESTART_ON_MIGRATE", Value: 4},
+ {Name: "RSEQ_CS_FLAG_NO_RESTART_ON_PREEMPT", Value: 1},
+ {Name: "RSEQ_CS_FLAG_NO_RESTART_ON_SIGNAL", Value: 2},
{Name: "RTA_DST", Value: 1},
{Name: "RTA_ENCAP", Value: 22},
{Name: "RTA_ENCAP_TYPE", Value: 21},
@@ -36411,6 +36435,7 @@ var consts_arm = []ConstValue{
{Name: "__NR_request_key", Value: 310},
{Name: "__NR_restart_syscall"},
{Name: "__NR_rmdir", Value: 40},
+ {Name: "__NR_rseq", Value: 398},
{Name: "__NR_rt_sigaction", Value: 174},
{Name: "__NR_rt_sigpending", Value: 176},
{Name: "__NR_rt_sigprocmask", Value: 175},
@@ -36516,4 +36541,4 @@ var consts_arm = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_arm = "6b6722dfc791e76f8e5ea43bb5ed38f3cabaa311"
+const revision_arm = "ee15ae72d74ca765e2db3496672f951a1b9bfaa1"
diff --git a/sys/linux/gen/arm64.go b/sys/linux/gen/arm64.go
index aaa6b3896..3ceef4936 100644
--- a/sys/linux/gen/arm64.go
+++ b/sys/linux/gen/arm64.go
@@ -33789,6 +33789,9 @@ var consts_arm64 = []ConstValue{
{Name: "RNDCLEARPOOL", Value: 20998},
{Name: "RNDGETENTCNT", Value: 2147766784},
{Name: "RNDZAPENTCNT", Value: 20996},
+ {Name: "RSEQ_CS_FLAG_NO_RESTART_ON_MIGRATE", Value: 4},
+ {Name: "RSEQ_CS_FLAG_NO_RESTART_ON_PREEMPT", Value: 1},
+ {Name: "RSEQ_CS_FLAG_NO_RESTART_ON_SIGNAL", Value: 2},
{Name: "RTA_DST", Value: 1},
{Name: "RTA_ENCAP", Value: 22},
{Name: "RTA_ENCAP_TYPE", Value: 21},
@@ -36730,4 +36733,4 @@ var consts_arm64 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_arm64 = "c62a27e289c952463593743f46ab30695095ad93"
+const revision_arm64 = "3425b5fc030a24ba1be46429544418dd9b05de5c"
diff --git a/sys/linux/gen/ppc64le.go b/sys/linux/gen/ppc64le.go
index c3dab6c60..0bab02ff7 100644
--- a/sys/linux/gen/ppc64le.go
+++ b/sys/linux/gen/ppc64le.go
@@ -13330,6 +13330,20 @@ var structDescs_ppc64le = []*KeyedStruct{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "futex_offset", TypeSize: 8, ArgDir: 1}}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "list_op_pending", TypeSize: 8, IsOptional: true}, Type: &StructType{Key: StructKey{Name: "robust_list"}}},
}}},
+ {Key: StructKey{Name: "rseq"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rseq", TypeSize: 32}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cpu_id_start", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cpu_id", TypeSize: 4}}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "rseq_cs", TypeSize: 8, IsOptional: true}, Type: &StructType{Key: StructKey{Name: "rseq_cs"}}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "rseq_cs_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2, 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 12}}, IsPad: true},
+ }, AlignAttr: 32}},
+ {Key: StructKey{Name: "rseq_cs"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rseq_cs", TypeSize: 32}, Fields: []Type{
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "version", TypeSize: 4}}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "rseq_cs_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2, 4}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "start_ip", TypeSize: 8}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "post_commit_offset", TypeSize: 8}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "abort_ip", TypeSize: 8}}},
+ }, AlignAttr: 32}},
{Key: StructKey{Name: "rtentry_in"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtentry_in", TypeSize: 120}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "rt_pad1", TypeSize: 8}}},
&StructType{Key: StructKey{Name: "sockaddr_in"}, FldName: "rt_dst"},
@@ -25802,6 +25816,12 @@ var syscalls_ppc64le = []*Syscall{
{NR: 40, Name: "rmdir", CallName: "rmdir", Args: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}},
}},
+ {NR: 387, Name: "rseq", CallName: "rseq", Args: []Type{
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "rseq", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "rseq"}}},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "rseq_len", TypeSize: 8}}, BitSize: 8, Buf: "rseq"},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "flags", TypeSize: 8}}, Kind: 2, RangeEnd: 1},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "sig", TypeSize: 8}}},
+ }},
{NR: 173, Name: "rt_sigaction", CallName: "rt_sigaction", Args: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "sig", TypeSize: 4}}, Kind: 2, RangeEnd: 65},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "act", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "sigaction"}}},
@@ -32134,6 +32154,9 @@ var consts_ppc64le = []ConstValue{
{Name: "RNDCLEARPOOL", Value: 536891910},
{Name: "RNDGETENTCNT", Value: 1074024960},
{Name: "RNDZAPENTCNT", Value: 536891908},
+ {Name: "RSEQ_CS_FLAG_NO_RESTART_ON_MIGRATE", Value: 4},
+ {Name: "RSEQ_CS_FLAG_NO_RESTART_ON_PREEMPT", Value: 1},
+ {Name: "RSEQ_CS_FLAG_NO_RESTART_ON_SIGNAL", Value: 2},
{Name: "RTA_DST", Value: 1},
{Name: "RTA_ENCAP", Value: 22},
{Name: "RTA_ENCAP_TYPE", Value: 21},
@@ -34032,6 +34055,7 @@ var consts_ppc64le = []ConstValue{
{Name: "__NR_request_key", Value: 270},
{Name: "__NR_restart_syscall"},
{Name: "__NR_rmdir", Value: 40},
+ {Name: "__NR_rseq", Value: 387},
{Name: "__NR_rt_sigaction", Value: 173},
{Name: "__NR_rt_sigpending", Value: 175},
{Name: "__NR_rt_sigprocmask", Value: 174},
@@ -34131,4 +34155,4 @@ var consts_ppc64le = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_ppc64le = "4d1d8966c4e9be19a8def1df7840f085c1e49434"
+const revision_ppc64le = "ff218fc605d30d57dd34d66caa68cebc72b830f8"