diff options
| author | Andrei Vagin <avagin@gmail.com> | 2019-11-25 22:42:24 -0800 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-11-27 09:35:58 +0100 |
| commit | 5a38f3f0660c5210d57304a7e6519d9f56bfffba (patch) | |
| tree | a852b1c2351662f3b84b76db45117c4ce72fe13d /sys/linux | |
| parent | 1048481f27fb0ab9d1af5000f7c81e392cdee0f3 (diff) | |
sys/linux: describe PTRACE_PEEKSIGINFO
Signed-off-by: Andrei Vagin <avagin@gmail.com>
Diffstat (limited to 'sys/linux')
| -rw-r--r-- | sys/linux/gen/386.go | 15 | ||||
| -rw-r--r-- | sys/linux/gen/amd64.go | 15 | ||||
| -rw-r--r-- | sys/linux/gen/arm.go | 15 | ||||
| -rw-r--r-- | sys/linux/gen/arm64.go | 15 | ||||
| -rw-r--r-- | sys/linux/gen/ppc64le.go | 15 | ||||
| -rw-r--r-- | sys/linux/sys.txt | 9 | ||||
| -rw-r--r-- | sys/linux/sys_386.const | 2 | ||||
| -rw-r--r-- | sys/linux/sys_amd64.const | 2 | ||||
| -rw-r--r-- | sys/linux/sys_arm.const | 2 | ||||
| -rw-r--r-- | sys/linux/sys_arm64.const | 2 | ||||
| -rw-r--r-- | sys/linux/sys_ppc64le.const | 2 |
11 files changed, 89 insertions, 5 deletions
diff --git a/sys/linux/gen/386.go b/sys/linux/gen/386.go index 2f7633afa..a242756e3 100644 --- a/sys/linux/gen/386.go +++ b/sys/linux/gen/386.go @@ -21027,6 +21027,11 @@ var structDescs_386 = []*KeyedStruct{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "exe_fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true}, }}}, + {Key: StructKey{Name: "ptrace_peeksiginfo_args"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptrace_peeksiginfo_args", TypeSize: 16}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "off", TypeSize: 8}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ptrace_peeksiginfo_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{0, 1}, BitMask: true}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nr", TypeSize: 4}}, Path: []string{"syscall", "data"}}, + }}}, {Key: StructKey{Name: "q_cake_options"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "q_cake_options", IsVarlen: true}, Fields: []Type{ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_CAKE_BASE_RATE64, int16], int64]"}, FldName: "TCA_CAKE_BASE_RATE64"}, &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_CAKE_DIFFSERV_MODE, int16], flags[tc_cake_diffserv_mode, int32]]"}, FldName: "TCA_CAKE_DIFFSERV_MODE"}, @@ -42140,6 +42145,12 @@ var syscalls_386 = []*Syscall{ &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "addr", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 4, ArgDir: 1}}}}, }}, + {NR: 26, Name: "ptrace$peeksig", CallName: "ptrace", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "req", TypeSize: 4}}, Val: 16905}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "args", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "ptrace_peeksiginfo_args"}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 4}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "siginfo", Dir: 1}}}}, + }}, {NR: 26, Name: "ptrace$peekuser", CallName: "ptrace", MissingArgs: 1, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "req", TypeSize: 4}}, Val: 3}, &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, @@ -51766,6 +51777,8 @@ var consts_386 = []ConstValue{ {Name: "PTRACE_O_TRACEVFORK", Value: 4}, {Name: "PTRACE_O_TRACEVFORKDONE", Value: 32}, {Name: "PTRACE_PEEKDATA", Value: 2}, + {Name: "PTRACE_PEEKSIGINFO", Value: 16905}, + {Name: "PTRACE_PEEKSIGINFO_SHARED", Value: 1}, {Name: "PTRACE_PEEKTEXT", Value: 1}, {Name: "PTRACE_PEEKUSR", Value: 3}, {Name: "PTRACE_POKEDATA", Value: 5}, @@ -55911,4 +55924,4 @@ var consts_386 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_386 = "b8df8694a669e9d5d47f80861ca802fed57ed6c4" +const revision_386 = "07e9bb9a40b1525f6bf6e5e61a6e9e2684d31917" diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go index 7b350bf93..202c63721 100644 --- a/sys/linux/gen/amd64.go +++ b/sys/linux/gen/amd64.go @@ -21333,6 +21333,11 @@ var structDescs_amd64 = []*KeyedStruct{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "auxv_size", TypeSize: 4}}, BitSize: 8, Path: []string{"auxv"}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "exe_fd", TypeSize: 4}}, }}}, + {Key: StructKey{Name: "ptrace_peeksiginfo_args"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptrace_peeksiginfo_args", TypeSize: 16}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "off", TypeSize: 8}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ptrace_peeksiginfo_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{0, 1}, BitMask: true}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nr", TypeSize: 4}}, Path: []string{"syscall", "data"}}, + }}}, {Key: StructKey{Name: "q_cake_options"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "q_cake_options", IsVarlen: true}, Fields: []Type{ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_CAKE_BASE_RATE64, int16], int64]"}, FldName: "TCA_CAKE_BASE_RATE64"}, &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_CAKE_DIFFSERV_MODE, int16], flags[tc_cake_diffserv_mode, int32]]"}, FldName: "TCA_CAKE_DIFFSERV_MODE"}, @@ -42675,6 +42680,12 @@ var syscalls_amd64 = []*Syscall{ &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "addr", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 8, ArgDir: 1}}}}, }}, + {NR: 101, Name: "ptrace$peeksig", CallName: "ptrace", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "req", TypeSize: 8}}, Val: 16905}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "args", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "ptrace_peeksiginfo_args"}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "siginfo", Dir: 1}}}}, + }}, {NR: 101, Name: "ptrace$peekuser", CallName: "ptrace", MissingArgs: 1, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "req", TypeSize: 8}}, Val: 3}, &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, @@ -52306,6 +52317,8 @@ var consts_amd64 = []ConstValue{ {Name: "PTRACE_O_TRACEVFORK", Value: 4}, {Name: "PTRACE_O_TRACEVFORKDONE", Value: 32}, {Name: "PTRACE_PEEKDATA", Value: 2}, + {Name: "PTRACE_PEEKSIGINFO", Value: 16905}, + {Name: "PTRACE_PEEKSIGINFO_SHARED", Value: 1}, {Name: "PTRACE_PEEKTEXT", Value: 1}, {Name: "PTRACE_PEEKUSR", Value: 3}, {Name: "PTRACE_POKEDATA", Value: 5}, @@ -56466,4 +56479,4 @@ var consts_amd64 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_amd64 = "77be4d61dfdd899c8fd951eb88591e37a4af9c3b" +const revision_amd64 = "bf8af143f2b64567fba248dd47d16867c5268114" diff --git a/sys/linux/gen/arm.go b/sys/linux/gen/arm.go index dd2c865f2..22769f378 100644 --- a/sys/linux/gen/arm.go +++ b/sys/linux/gen/arm.go @@ -20844,6 +20844,11 @@ var structDescs_arm = []*KeyedStruct{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "exe_fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true}, }}}, + {Key: StructKey{Name: "ptrace_peeksiginfo_args"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptrace_peeksiginfo_args", TypeSize: 16}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "off", TypeSize: 8}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ptrace_peeksiginfo_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{0, 1}, BitMask: true}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nr", TypeSize: 4}}, Path: []string{"syscall", "data"}}, + }}}, {Key: StructKey{Name: "q_cake_options"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "q_cake_options", IsVarlen: true}, Fields: []Type{ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_CAKE_BASE_RATE64, int16], int64]"}, FldName: "TCA_CAKE_BASE_RATE64"}, &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_CAKE_DIFFSERV_MODE, int16], flags[tc_cake_diffserv_mode, int32]]"}, FldName: "TCA_CAKE_DIFFSERV_MODE"}, @@ -41801,6 +41806,12 @@ var syscalls_arm = []*Syscall{ &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "addr", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 4, ArgDir: 1}}}}, }}, + {NR: 26, Name: "ptrace$peeksig", CallName: "ptrace", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "req", TypeSize: 4}}, Val: 16905}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "args", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "ptrace_peeksiginfo_args"}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 4}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "siginfo", Dir: 1}}}}, + }}, {NR: 26, Name: "ptrace$peekuser", CallName: "ptrace", MissingArgs: 1, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "req", TypeSize: 4}}, Val: 3}, &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, @@ -51355,6 +51366,8 @@ var consts_arm = []ConstValue{ {Name: "PTRACE_O_TRACEVFORK", Value: 4}, {Name: "PTRACE_O_TRACEVFORKDONE", Value: 32}, {Name: "PTRACE_PEEKDATA", Value: 2}, + {Name: "PTRACE_PEEKSIGINFO", Value: 16905}, + {Name: "PTRACE_PEEKSIGINFO_SHARED", Value: 1}, {Name: "PTRACE_PEEKTEXT", Value: 1}, {Name: "PTRACE_PEEKUSR", Value: 3}, {Name: "PTRACE_POKEDATA", Value: 5}, @@ -55488,4 +55501,4 @@ var consts_arm = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_arm = "30fe6f6f30052aa0cb4f2faf14684a9daf096cca" +const revision_arm = "ae4aaface5d0582c22ff83b18fd414fe5415b08d" diff --git a/sys/linux/gen/arm64.go b/sys/linux/gen/arm64.go index 389bad45d..acacba983 100644 --- a/sys/linux/gen/arm64.go +++ b/sys/linux/gen/arm64.go @@ -21150,6 +21150,11 @@ var structDescs_arm64 = []*KeyedStruct{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "auxv_size", TypeSize: 4}}, BitSize: 8, Path: []string{"auxv"}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "exe_fd", TypeSize: 4}}, }}}, + {Key: StructKey{Name: "ptrace_peeksiginfo_args"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptrace_peeksiginfo_args", TypeSize: 16}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "off", TypeSize: 8}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ptrace_peeksiginfo_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{0, 1}, BitMask: true}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nr", TypeSize: 4}}, Path: []string{"syscall", "data"}}, + }}}, {Key: StructKey{Name: "q_cake_options"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "q_cake_options", IsVarlen: true}, Fields: []Type{ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_CAKE_BASE_RATE64, int16], int64]"}, FldName: "TCA_CAKE_BASE_RATE64"}, &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_CAKE_DIFFSERV_MODE, int16], flags[tc_cake_diffserv_mode, int32]]"}, FldName: "TCA_CAKE_DIFFSERV_MODE"}, @@ -42198,6 +42203,12 @@ var syscalls_arm64 = []*Syscall{ &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "addr", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 8, ArgDir: 1}}}}, }}, + {NR: 117, Name: "ptrace$peeksig", CallName: "ptrace", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "req", TypeSize: 8}}, Val: 16905}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "args", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "ptrace_peeksiginfo_args"}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "siginfo", Dir: 1}}}}, + }}, {NR: 117, Name: "ptrace$peekuser", CallName: "ptrace", MissingArgs: 1, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "req", TypeSize: 8}}, Val: 3}, &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, @@ -51701,6 +51712,8 @@ var consts_arm64 = []ConstValue{ {Name: "PTRACE_O_TRACEVFORK", Value: 4}, {Name: "PTRACE_O_TRACEVFORKDONE", Value: 32}, {Name: "PTRACE_PEEKDATA", Value: 2}, + {Name: "PTRACE_PEEKSIGINFO", Value: 16905}, + {Name: "PTRACE_PEEKSIGINFO_SHARED", Value: 1}, {Name: "PTRACE_PEEKTEXT", Value: 1}, {Name: "PTRACE_PEEKUSR", Value: 3}, {Name: "PTRACE_POKEDATA", Value: 5}, @@ -55818,4 +55831,4 @@ var consts_arm64 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_arm64 = "e1c4269d6bf4622bd4db07d95b43e9f98a17c27a" +const revision_arm64 = "add39f863dcd3898c55846eb28bb657664c4c5e8" diff --git a/sys/linux/gen/ppc64le.go b/sys/linux/gen/ppc64le.go index cedf0777b..dbb056a14 100644 --- a/sys/linux/gen/ppc64le.go +++ b/sys/linux/gen/ppc64le.go @@ -21102,6 +21102,11 @@ var structDescs_ppc64le = []*KeyedStruct{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "auxv_size", TypeSize: 4}}, BitSize: 8, Path: []string{"auxv"}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "exe_fd", TypeSize: 4}}, }}}, + {Key: StructKey{Name: "ptrace_peeksiginfo_args"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptrace_peeksiginfo_args", TypeSize: 16}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "off", TypeSize: 8}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ptrace_peeksiginfo_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{0, 1}, BitMask: true}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nr", TypeSize: 4}}, Path: []string{"syscall", "data"}}, + }}}, {Key: StructKey{Name: "q_cake_options"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "q_cake_options", IsVarlen: true}, Fields: []Type{ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_CAKE_BASE_RATE64, int16], int64]"}, FldName: "TCA_CAKE_BASE_RATE64"}, &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_CAKE_DIFFSERV_MODE, int16], flags[tc_cake_diffserv_mode, int32]]"}, FldName: "TCA_CAKE_DIFFSERV_MODE"}, @@ -42138,6 +42143,12 @@ var syscalls_ppc64le = []*Syscall{ &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "addr", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 8, ArgDir: 1}}}}, }}, + {NR: 26, Name: "ptrace$peeksig", CallName: "ptrace", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "req", TypeSize: 8}}, Val: 16905}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "args", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "ptrace_peeksiginfo_args"}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "siginfo", Dir: 1}}}}, + }}, {NR: 26, Name: "ptrace$peekuser", CallName: "ptrace", MissingArgs: 1, Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "req", TypeSize: 8}}, Val: 3}, &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}}, @@ -51692,6 +51703,8 @@ var consts_ppc64le = []ConstValue{ {Name: "PTRACE_O_TRACEVFORK", Value: 4}, {Name: "PTRACE_O_TRACEVFORKDONE", Value: 32}, {Name: "PTRACE_PEEKDATA", Value: 2}, + {Name: "PTRACE_PEEKSIGINFO", Value: 16905}, + {Name: "PTRACE_PEEKSIGINFO_SHARED", Value: 1}, {Name: "PTRACE_PEEKTEXT", Value: 1}, {Name: "PTRACE_PEEKUSR", Value: 3}, {Name: "PTRACE_POKEDATA", Value: 5}, @@ -55783,4 +55796,4 @@ var consts_ppc64le = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_ppc64le = "8d0319e849ff9f777be9f81414561fe16870344d" +const revision_ppc64le = "56ef3d9a10055fe2cca561dd1efc4d8c109d163c" diff --git a/sys/linux/sys.txt b/sys/linux/sys.txt index 758814413..1d59b20f8 100644 --- a/sys/linux/sys.txt +++ b/sys/linux/sys.txt @@ -210,6 +210,14 @@ seccomp_metadata { flags const[0, int32] } +ptrace_peeksiginfo_args { + off int64 + flags flags[ptrace_peeksiginfo_flags, int32] + nr len[syscall:data, int32] +} + +ptrace$peeksig(req const[PTRACE_PEEKSIGINFO], pid pid, args ptr[in, ptrace_peeksiginfo_args], data ptr[out, array[siginfo]]) + capget(hdr ptr[in, cap_header], data ptr[in, cap_data]) capset(hdr ptr[in, cap_header], data ptr[in, cap_data]) @@ -942,6 +950,7 @@ fiemap_flags = FIEMAP_FLAG_SYNC, FIEMAP_FLAG_XATTR, FIEMAP_FLAG_CACHE fiemap_extent_flags = FIEMAP_EXTENT_LAST, FIEMAP_EXTENT_UNKNOWN, FIEMAP_EXTENT_DELALLOC, FIEMAP_EXTENT_ENCODED, FIEMAP_EXTENT_DATA_ENCRYPTED, FIEMAP_EXTENT_NOT_ALIGNED, FIEMAP_EXTENT_DATA_INLINE, FIEMAP_EXTENT_DATA_TAIL, FIEMAP_EXTENT_UNWRITTEN, FIEMAP_EXTENT_MERGED, FIEMAP_EXTENT_SHARED getrandom_flags = GRND_NONBLOCK, GRND_RANDOM clone_flags = CLONE_VM, CLONE_FS, CLONE_FILES, CLONE_SIGHAND, CLONE_PTRACE, CLONE_VFORK, CLONE_PARENT, CLONE_THREAD, CLONE_NEWNS, CLONE_SYSVSEM, CLONE_SETTLS, CLONE_PARENT_SETTID, CLONE_CHILD_CLEARTID, CLONE_UNTRACED, CLONE_CHILD_SETTID, CLONE_NEWCGROUP, CLONE_NEWUTS, CLONE_NEWIPC, CLONE_NEWUSER, CLONE_NEWPID, CLONE_NEWNET, CLONE_IO, CLONE_PIDFD +ptrace_peeksiginfo_flags = 0, PTRACE_PEEKSIGINFO_SHARED # adjtimex flags. _ = STA_PLL, STA_PPSFREQ, STA_PPSTIME, STA_FLL, STA_INS, STA_DEL, STA_UNSYNC, STA_FREQHOLD, STA_PPSSIGNAL, STA_PPSJITTER, STA_PPSWANDER, STA_PPSERROR, STA_CLOCKERR, STA_NANO, STA_MODE, STA_CLK, STA_RONLY diff --git a/sys/linux/sys_386.const b/sys/linux/sys_386.const index 658521dbb..c9142c8b1 100644 --- a/sys/linux/sys_386.const +++ b/sys/linux/sys_386.const @@ -372,6 +372,8 @@ PTRACE_O_TRACESYSGOOD = 1 PTRACE_O_TRACEVFORK = 4 PTRACE_O_TRACEVFORKDONE = 32 PTRACE_PEEKDATA = 2 +PTRACE_PEEKSIGINFO = 16905 +PTRACE_PEEKSIGINFO_SHARED = 1 PTRACE_PEEKTEXT = 1 PTRACE_PEEKUSR = 3 PTRACE_POKEDATA = 5 diff --git a/sys/linux/sys_amd64.const b/sys/linux/sys_amd64.const index 9cae7e471..7b43bf440 100644 --- a/sys/linux/sys_amd64.const +++ b/sys/linux/sys_amd64.const @@ -372,6 +372,8 @@ PTRACE_O_TRACESYSGOOD = 1 PTRACE_O_TRACEVFORK = 4 PTRACE_O_TRACEVFORKDONE = 32 PTRACE_PEEKDATA = 2 +PTRACE_PEEKSIGINFO = 16905 +PTRACE_PEEKSIGINFO_SHARED = 1 PTRACE_PEEKTEXT = 1 PTRACE_PEEKUSR = 3 PTRACE_POKEDATA = 5 diff --git a/sys/linux/sys_arm.const b/sys/linux/sys_arm.const index ba6d67257..121dcd6a8 100644 --- a/sys/linux/sys_arm.const +++ b/sys/linux/sys_arm.const @@ -372,6 +372,8 @@ PTRACE_O_TRACESYSGOOD = 1 PTRACE_O_TRACEVFORK = 4 PTRACE_O_TRACEVFORKDONE = 32 PTRACE_PEEKDATA = 2 +PTRACE_PEEKSIGINFO = 16905 +PTRACE_PEEKSIGINFO_SHARED = 1 PTRACE_PEEKTEXT = 1 PTRACE_PEEKUSR = 3 PTRACE_POKEDATA = 5 diff --git a/sys/linux/sys_arm64.const b/sys/linux/sys_arm64.const index 09e2855a9..3d3825f33 100644 --- a/sys/linux/sys_arm64.const +++ b/sys/linux/sys_arm64.const @@ -372,6 +372,8 @@ PTRACE_O_TRACESYSGOOD = 1 PTRACE_O_TRACEVFORK = 4 PTRACE_O_TRACEVFORKDONE = 32 PTRACE_PEEKDATA = 2 +PTRACE_PEEKSIGINFO = 16905 +PTRACE_PEEKSIGINFO_SHARED = 1 PTRACE_PEEKTEXT = 1 PTRACE_PEEKUSR = 3 PTRACE_POKEDATA = 5 diff --git a/sys/linux/sys_ppc64le.const b/sys/linux/sys_ppc64le.const index 9a1b9f553..379cb72dd 100644 --- a/sys/linux/sys_ppc64le.const +++ b/sys/linux/sys_ppc64le.const @@ -372,6 +372,8 @@ PTRACE_O_TRACESYSGOOD = 1 PTRACE_O_TRACEVFORK = 4 PTRACE_O_TRACEVFORKDONE = 32 PTRACE_PEEKDATA = 2 +PTRACE_PEEKSIGINFO = 16905 +PTRACE_PEEKSIGINFO_SHARED = 1 PTRACE_PEEKTEXT = 1 PTRACE_PEEKUSR = 3 PTRACE_POKEDATA = 5 |
