From 88f115c9699ca2f4fe25e29c5f97691be179a8a3 Mon Sep 17 00:00:00 2001 From: Paul Chaignon Date: Sat, 15 Feb 2020 20:58:08 +0100 Subject: sys/linux: update BPF constants and structures Signed-off-by: Paul Chaignon --- sys/linux/gen/ppc64le.go | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'sys/linux/gen/ppc64le.go') diff --git a/sys/linux/gen/ppc64le.go b/sys/linux/gen/ppc64le.go index 5b3739b35..753b5a193 100644 --- a/sys/linux/gen/ppc64le.go +++ b/sys/linux/gen/ppc64le.go @@ -1195,11 +1195,12 @@ var structDescs_ppc64le = []*KeyedStruct{ {StructKey{Name: "bond_slave_policy"}, &StructDesc{TypeCommon: TypeCommon{TypeName: "bond_slave_policy", IsVarlen: true}, Fields: []Type{ &StructType{Key: StructKey{Name: "nlattr_t[const[IFLA_BOND_SLAVE_QUEUE_ID, int16], int16]"}, FldName: "IFLA_BOND_SLAVE_QUEUE_ID"}, }}}, - {StructKey{Name: "bpf_attach_arg"}, &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_attach_arg", TypeSize: 16}, Fields: []Type{ + {StructKey{Name: "bpf_attach_arg"}, &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_attach_arg", TypeSize: 20}, Fields: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cgroup", FldName: "target_fd", TypeSize: 4}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_prog", FldName: "attach_bpf_fd", TypeSize: 4}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_attach_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25}}, - &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_attach_flags", FldName: "flags", TypeSize: 4}}, []uint64{1, 2}, true}, + &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_attach_flags", FldName: "flags", TypeSize: 4}}, []uint64{1, 2, 4}, true}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_prog", FldName: "replace_bpf_fd", TypeSize: 4}}, }}}, {StructKey{"bpf_btf_info", 2}, &StructDesc{TypeCommon{TypeName: "bpf_btf_info", TypeSize: 16, ArgDir: 2}, []Type{ &PtrType{TypeCommon{TypeName: "ptr64", FldName: "btf", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}}, @@ -1361,8 +1362,8 @@ var structDescs_ppc64le = []*KeyedStruct{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "line_off", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "line_col", TypeSize: 4}}}, }}}, - {StructKey{Name: "bpf_map_create_arg"}, &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_map_create_arg", TypeSize: 60}, Fields: []Type{ - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_map_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25}}, + {StructKey{Name: "bpf_map_create_arg"}, &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_map_create_arg", TypeSize: 64}, Fields: []Type{ + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_map_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "ksize", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "vsize", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "max", TypeSize: 4}}}, @@ -1374,6 +1375,7 @@ var structDescs_ppc64le = []*KeyedStruct{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_btf", FldName: "btf_fd", TypeSize: 4, IsOptional: true}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "btf_key_type_id", TypeSize: 4}}, Kind: 1, RangeEnd: 5}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "btf_value_type_id", TypeSize: 4}}, Kind: 1, RangeEnd: 5}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "btf_vmlinux_type_id", TypeSize: 4}}, Kind: 1, RangeEnd: 5}, }}}, {StructKey{Name: "bpf_map_delete_arg"}, &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_map_delete_arg", TypeSize: 32}, Fields: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_map", FldName: "map", TypeSize: 4}}, @@ -1455,7 +1457,7 @@ var structDescs_ppc64le = []*KeyedStruct{ &StructType{Key: StructKey{Name: "nlattr_t[const[TCA_BPF_OPS, int16], array[sock_filter]]"}, FldName: "TCA_BPF_OPS"}, }}}, {StructKey{Name: "bpf_prog"}, &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_prog", TypeSize: 120}, Fields: []Type{ - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_type", FldName: "type", TypeSize: 4}}, Vals: []uint64{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize8", FldName: "ninsn", TypeSize: 4}}, BitSize: 64, Path: []string{"insns"}}, &PtrType{TypeCommon{TypeName: "ptr64", FldName: "insns", TypeSize: 8}, &UnionType{Key: StructKey{Name: "bpf_instructions"}}}, &PtrType{TypeCommon{TypeName: "ptr64", FldName: "license", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "bpf_licenses", Values: []string{"GPL\x00", "syzkaller\x00"}}}, @@ -66575,6 +66577,7 @@ var consts_ppc64le = []ConstValue{ {"BPF_F_QUERY_EFFECTIVE", 1}, {"BPF_F_RDONLY", 8}, {"BPF_F_RDONLY_PROG", 128}, + {"BPF_F_REPLACE", 4}, {"BPF_F_STACK_BUILD_ID", 32}, {"BPF_F_STRICT_ALIGNMENT", 1}, {"BPF_F_TEST_RND_HI32", 4}, @@ -66635,6 +66638,7 @@ var consts_ppc64le = []ConstValue{ {"BPF_MAP_TYPE_SOCKMAP", 15}, {"BPF_MAP_TYPE_STACK", 23}, {"BPF_MAP_TYPE_STACK_TRACE", 7}, + {"BPF_MAP_TYPE_STRUCT_OPS", 26}, {"BPF_MAP_TYPE_XSKMAP", 17}, {"BPF_MAP_UPDATE_ELEM", 2}, {"BPF_MEM0", 3}, @@ -66661,6 +66665,7 @@ var consts_ppc64le = []ConstValue{ {"BPF_PROG_TYPE_CGROUP_SOCKOPT", 25}, {"BPF_PROG_TYPE_CGROUP_SOCK_ADDR", 18}, {"BPF_PROG_TYPE_CGROUP_SYSCTL", 23}, + {"BPF_PROG_TYPE_EXT", 28}, {"BPF_PROG_TYPE_FLOW_DISSECTOR", 22}, {"BPF_PROG_TYPE_KPROBE", 2}, {"BPF_PROG_TYPE_LIRC_MODE2", 20}, @@ -66678,6 +66683,7 @@ var consts_ppc64le = []ConstValue{ {"BPF_PROG_TYPE_SK_SKB", 14}, {"BPF_PROG_TYPE_SOCKET_FILTER", 1}, {"BPF_PROG_TYPE_SOCK_OPS", 13}, + {"BPF_PROG_TYPE_STRUCT_OPS", 27}, {"BPF_PROG_TYPE_TRACEPOINT", 5}, {"BPF_PROG_TYPE_TRACING", 26}, {"BPF_PROG_TYPE_XDP", 6}, @@ -76069,4 +76075,4 @@ var consts_ppc64le = []ConstValue{ {"ethtool_per_queue_op_size", 128}, } -const revision_ppc64le = "a00cd9d68a7b1a4c03d0299d4c4c4d9edfaca375" +const revision_ppc64le = "133be9cd70d7411dfc77e131e2bdaf7974e58b1a" -- cgit mrf-deployment