From 4bf3b336ebce1eb3d5d2d453c0dae1a674af2a9f Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 8 Jul 2018 19:20:40 +0200 Subject: sys/linux: modernize cgroup descriptions --- sys/linux/gen/arm.go | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'sys/linux/gen/arm.go') 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" -- cgit mrf-deployment