diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-07-08 19:20:40 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-07-08 22:52:24 +0200 |
| commit | 4bf3b336ebce1eb3d5d2d453c0dae1a674af2a9f (patch) | |
| tree | 55f1eb6c191ff9fe33e7d12d5053b82c71e8e775 /sys | |
| parent | e63a51b4b3f848ef46bcb2811f02d4745c82c88d (diff) | |
sys/linux: modernize cgroup descriptions
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/linux/cgroup.txt | 16 | ||||
| -rw-r--r-- | sys/linux/gen/386.go | 12 | ||||
| -rw-r--r-- | sys/linux/gen/amd64.go | 12 | ||||
| -rw-r--r-- | sys/linux/gen/arm.go | 12 | ||||
| -rw-r--r-- | sys/linux/gen/arm64.go | 12 | ||||
| -rw-r--r-- | sys/linux/gen/ppc64le.go | 12 |
6 files changed, 18 insertions, 58 deletions
diff --git a/sys/linux/cgroup.txt b/sys/linux/cgroup.txt index 8a332303e..dbf63a6ca 100644 --- a/sys/linux/cgroup.txt +++ b/sys/linux/cgroup.txt @@ -18,20 +18,11 @@ openat$cgroup_int(fd fd_cgroup, file ptr[in, string[cgroup_ctrl_int]], flags con openat$cgroup_procs(fd fd_cgroup, file ptr[in, string[cgroup_proc_files]], flags const[O_RDWR], mode const[0]) fd_cgroup_pid openat$cgroup_subtree(fd fd_cgroup, file ptr[in, string["cgroup.subtree_control"]], flags const[O_RDWR], mode const[0]) fd_cgroup_subtree openat$cgroup_type(fd fd_cgroup, file ptr[in, string["cgroup.type"]], flags const[O_RDWR], mode const[0]) fd_cgroup_type -write$cgroup_int(fd fd_cgroup_int, buf ptr[in, cgroup_int], len bytesize[buf]) -write$cgroup_pid(fd fd_cgroup_pid, buf ptr[in, cgroup_pid], len bytesize[buf]) +write$cgroup_int(fd fd_cgroup_int, buf ptr[in, fmt[hex, int64]], len bytesize[buf]) +write$cgroup_pid(fd fd_cgroup_pid, buf ptr[in, fmt[hex, pid]], len bytesize[buf]) write$cgroup_subtree(fd fd_cgroup_subtree, buf ptr[in, cgroup_subtree], len bytesize[buf]) write$cgroup_type(fd fd_cgroup_type, buf ptr[in, string["threaded"]], len bytesize[buf]) -cgroup_int { - digits array[flags[cgroup_digits, int8]] -} [packed] - -# TODO: these are bad pid's. We need something like sprintf["%v", pid]. -cgroup_pid { - digits array[int8[48:57]] -} [packed] - cgroup_subtree { controls array[cgroup_control] } [packed] @@ -39,14 +30,13 @@ cgroup_subtree { cgroup_control { sign flags[cgroup_control_signs, int8] subsys stringnoz[cgroup_subsystems] - sp const[32, int8] + sp const[' ', int8] } [packed] cgroup_dirs = "./cgroup/syz0", "./cgroup/syz1", "./cgroup.cpu/syz0", "./cgroup.cpu/syz1", "./cgroup.net/syz0", "./cgroup.net/syz1" cgroup_names = "syz0", "syz1" cgroup_paths = "./cgroup/syz0", "./cgroup.cpu/syz0", "./cgroup.net/syz0", "./cgroup/syz1", "./cgroup.cpu/syz1", "./cgroup.net/syz1" cgroup_control_signs = '+', '-' -cgroup_digits = 0, '+', '-', ',', '/', ':', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9' cgroup_subsystems = "cpu", "memory", "io", "pids", "rdma" cgroup_proc_files = "cgroup.procs", "cgroup.threads", "tasks" cgroup_ctrl_read = "cgroup.controllers", "cgroup.events", "cgroup.stat", "cpu.stat", "cpu.stat", "io.stat", "memory.current", "memory.events", "memory.stat", "memory.swap.current", "pids.current", "pids.events", "rdma.current", "cpuacct.stat", "cpuacct.usage_all", "cpuacct.usage_percpu", "cpuacct.usage_percpu_sys", "cpuacct.usage_percpu_user", "cpuacct.usage_sys", "cpuacct.usage_user", "cpuset.effective_cpus", "cpuset.effective_mems", "cpuset.memory_pressure", "hugetlb.2MB.usage_in_bytes" diff --git a/sys/linux/gen/386.go b/sys/linux/gen/386.go index 011c7c14e..a99bbc6af 100644 --- a/sys/linux/gen/386.go +++ b/sys/linux/gen/386.go @@ -1156,12 +1156,6 @@ var structDescs_386 = []*KeyedStruct{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "subsys", IsVarlen: true}, Kind: 2, SubKind: "cgroup_subsystems", Values: []string{"cpu", "memory", "io", "pids", "rdma"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "sp", TypeSize: 1}}, Val: 32}, }}}, - {Key: StructKey{Name: "cgroup_int"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgroup_int", IsVarlen: true}, Fields: []Type{ - &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "digits", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "cgroup_digits", TypeSize: 1}}, Vals: []uint64{0, 43, 45, 44, 47, 58, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, - }}}, - {Key: StructKey{Name: "cgroup_pid"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgroup_pid", IsVarlen: true}, Fields: []Type{ - &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "digits", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 57}}, - }}}, {Key: StructKey{Name: "cgroup_subtree"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgroup_subtree", IsVarlen: true}, Fields: []Type{ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "controls", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "cgroup_control"}}}, }}}, @@ -31685,12 +31679,12 @@ var syscalls_386 = []*Syscall{ }}, {NR: 4, Name: "write$cgroup_int", CallName: "write", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cgroup_int", FldName: "fd", TypeSize: 4}}, - &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "cgroup_int"}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", TypeSize: 18}, ArgFormat: 3}}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 4}}, BitSize: 8, Buf: "buf"}, }}, {NR: 4, Name: "write$cgroup_pid", CallName: "write", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cgroup_pid", FldName: "fd", TypeSize: 4}}, - &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "cgroup_pid"}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 4}, Type: &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", TypeSize: 18}, ArgFormat: 3}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 4}}, BitSize: 8, Buf: "buf"}, }}, {NR: 4, Name: "write$cgroup_subtree", CallName: "write", Args: []Type{ @@ -37940,4 +37934,4 @@ var consts_386 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_386 = "622fd7dca5deefc11e95fb0b609c0ff9acfdaa26" +const revision_386 = "dbf3d96d2ab6ea07a713e868b93df17e17010e32" diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go index bc0b20363..967115f89 100644 --- a/sys/linux/gen/amd64.go +++ b/sys/linux/gen/amd64.go @@ -1166,12 +1166,6 @@ var structDescs_amd64 = []*KeyedStruct{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "subsys", IsVarlen: true}, Kind: 2, SubKind: "cgroup_subsystems", Values: []string{"cpu", "memory", "io", "pids", "rdma"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "sp", TypeSize: 1}}, Val: 32}, }}}, - {Key: StructKey{Name: "cgroup_int"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgroup_int", IsVarlen: true}, Fields: []Type{ - &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "digits", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "cgroup_digits", TypeSize: 1}}, Vals: []uint64{0, 43, 45, 44, 47, 58, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, - }}}, - {Key: StructKey{Name: "cgroup_pid"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgroup_pid", IsVarlen: true}, Fields: []Type{ - &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "digits", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 57}}, - }}}, {Key: StructKey{Name: "cgroup_subtree"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgroup_subtree", IsVarlen: true}, Fields: []Type{ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "controls", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "cgroup_control"}}}, }}}, @@ -32347,12 +32341,12 @@ var syscalls_amd64 = []*Syscall{ }}, {NR: 1, Name: "write$cgroup_int", CallName: "write", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cgroup_int", FldName: "fd", TypeSize: 4}}, - &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "cgroup_int"}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", TypeSize: 18}, ArgFormat: 3}}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 8}}, BitSize: 8, Buf: "buf"}, }}, {NR: 1, Name: "write$cgroup_pid", CallName: "write", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cgroup_pid", FldName: "fd", TypeSize: 4}}, - &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "cgroup_pid"}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, Type: &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", TypeSize: 18}, ArgFormat: 3}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 8}}, BitSize: 8, Buf: "buf"}, }}, {NR: 1, Name: "write$cgroup_subtree", CallName: "write", Args: []Type{ @@ -38627,4 +38621,4 @@ var consts_amd64 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_amd64 = "dd67115f60562407c454b7c2c3a9e0119a809599" +const revision_amd64 = "0c7d0f281179f92cc13d5a0707d5d8add119604e" diff --git a/sys/linux/gen/arm.go b/sys/linux/gen/arm.go index 4b2aa6d03..142a8d2f9 100644 --- a/sys/linux/gen/arm.go +++ b/sys/linux/gen/arm.go @@ -1161,12 +1161,6 @@ var structDescs_arm = []*KeyedStruct{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "subsys", IsVarlen: true}, Kind: 2, SubKind: "cgroup_subsystems", Values: []string{"cpu", "memory", "io", "pids", "rdma"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "sp", TypeSize: 1}}, Val: 32}, }}}, - {Key: StructKey{Name: "cgroup_int"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgroup_int", IsVarlen: true}, Fields: []Type{ - &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "digits", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "cgroup_digits", TypeSize: 1}}, Vals: []uint64{0, 43, 45, 44, 47, 58, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, - }}}, - {Key: StructKey{Name: "cgroup_pid"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgroup_pid", IsVarlen: true}, Fields: []Type{ - &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "digits", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 57}}, - }}}, {Key: StructKey{Name: "cgroup_subtree"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgroup_subtree", IsVarlen: true}, Fields: []Type{ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "controls", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "cgroup_control"}}}, }}}, @@ -31593,12 +31587,12 @@ var syscalls_arm = []*Syscall{ }}, {NR: 4, Name: "write$cgroup_int", CallName: "write", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cgroup_int", FldName: "fd", TypeSize: 4}}, - &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "cgroup_int"}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", TypeSize: 18}, ArgFormat: 3}}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 4}}, BitSize: 8, Buf: "buf"}, }}, {NR: 4, Name: "write$cgroup_pid", CallName: "write", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cgroup_pid", FldName: "fd", TypeSize: 4}}, - &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "cgroup_pid"}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 4}, Type: &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", TypeSize: 18}, ArgFormat: 3}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 4}}, BitSize: 8, Buf: "buf"}, }}, {NR: 4, Name: "write$cgroup_subtree", CallName: "write", Args: []Type{ @@ -37798,4 +37792,4 @@ var consts_arm = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_arm = "34eed31ba56f03d9a1473b8307ade80dad7af9cd" +const revision_arm = "b4b1a830b4361f981486973c99a0055602c93b81" diff --git a/sys/linux/gen/arm64.go b/sys/linux/gen/arm64.go index 7af86dbb4..4076facfb 100644 --- a/sys/linux/gen/arm64.go +++ b/sys/linux/gen/arm64.go @@ -1166,12 +1166,6 @@ var structDescs_arm64 = []*KeyedStruct{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "subsys", IsVarlen: true}, Kind: 2, SubKind: "cgroup_subsystems", Values: []string{"cpu", "memory", "io", "pids", "rdma"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "sp", TypeSize: 1}}, Val: 32}, }}}, - {Key: StructKey{Name: "cgroup_int"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgroup_int", IsVarlen: true}, Fields: []Type{ - &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "digits", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "cgroup_digits", TypeSize: 1}}, Vals: []uint64{0, 43, 45, 44, 47, 58, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, - }}}, - {Key: StructKey{Name: "cgroup_pid"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgroup_pid", IsVarlen: true}, Fields: []Type{ - &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "digits", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 57}}, - }}}, {Key: StructKey{Name: "cgroup_subtree"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgroup_subtree", IsVarlen: true}, Fields: []Type{ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "controls", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "cgroup_control"}}}, }}}, @@ -31797,12 +31791,12 @@ var syscalls_arm64 = []*Syscall{ }}, {NR: 64, Name: "write$cgroup_int", CallName: "write", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cgroup_int", FldName: "fd", TypeSize: 4}}, - &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "cgroup_int"}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", TypeSize: 18}, ArgFormat: 3}}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 8}}, BitSize: 8, Buf: "buf"}, }}, {NR: 64, Name: "write$cgroup_pid", CallName: "write", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cgroup_pid", FldName: "fd", TypeSize: 4}}, - &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "cgroup_pid"}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, Type: &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", TypeSize: 18}, ArgFormat: 3}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 8}}, BitSize: 8, Buf: "buf"}, }}, {NR: 64, Name: "write$cgroup_subtree", CallName: "write", Args: []Type{ @@ -37992,4 +37986,4 @@ var consts_arm64 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_arm64 = "06ba6b91a086878625a0392e3806aac59159893d" +const revision_arm64 = "01e2ba848bb65ed76ff6773ce56a0dfe9d1ef3c7" diff --git a/sys/linux/gen/ppc64le.go b/sys/linux/gen/ppc64le.go index a7a79d99a..da92e3b9b 100644 --- a/sys/linux/gen/ppc64le.go +++ b/sys/linux/gen/ppc64le.go @@ -1157,12 +1157,6 @@ var structDescs_ppc64le = []*KeyedStruct{ &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "subsys", IsVarlen: true}, Kind: 2, SubKind: "cgroup_subsystems", Values: []string{"cpu", "memory", "io", "pids", "rdma"}, NoZ: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "sp", TypeSize: 1}}, Val: 32}, }}}, - {Key: StructKey{Name: "cgroup_int"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgroup_int", IsVarlen: true}, Fields: []Type{ - &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "digits", IsVarlen: true}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "cgroup_digits", TypeSize: 1}}, Vals: []uint64{0, 43, 45, 44, 47, 58, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57}}}, - }}}, - {Key: StructKey{Name: "cgroup_pid"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgroup_pid", IsVarlen: true}, Fields: []Type{ - &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "digits", IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", TypeSize: 1}}, Kind: 2, RangeBegin: 48, RangeEnd: 57}}, - }}}, {Key: StructKey{Name: "cgroup_subtree"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "cgroup_subtree", IsVarlen: true}, Fields: []Type{ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "controls", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "cgroup_control"}}}, }}}, @@ -30264,12 +30258,12 @@ var syscalls_ppc64le = []*Syscall{ }}, {NR: 4, Name: "write$cgroup_int", CallName: "write", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cgroup_int", FldName: "fd", TypeSize: 4}}, - &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "cgroup_int"}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", TypeSize: 18}, ArgFormat: 3}}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 8}}, BitSize: 8, Buf: "buf"}, }}, {NR: 4, Name: "write$cgroup_pid", CallName: "write", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cgroup_pid", FldName: "fd", TypeSize: 4}}, - &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "cgroup_pid"}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, Type: &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", TypeSize: 18}, ArgFormat: 3}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 8}}, BitSize: 8, Buf: "buf"}, }}, {NR: 4, Name: "write$cgroup_subtree", CallName: "write", Args: []Type{ @@ -35423,4 +35417,4 @@ var consts_ppc64le = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_ppc64le = "e8294e0f35033c1790b864b1139cd45bba0d8cfd" +const revision_ppc64le = "9a9705b844a22bcfa745c6e246d7f721ac8419c4" |
