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/386.go | 18 ++++++++++++------ sys/linux/gen/amd64.go | 18 ++++++++++++------ sys/linux/gen/arm.go | 18 ++++++++++++------ sys/linux/gen/arm64.go | 18 ++++++++++++------ sys/linux/gen/mips64le.go | 8 +++++--- sys/linux/gen/ppc64le.go | 18 ++++++++++++------ 6 files changed, 65 insertions(+), 33 deletions(-) (limited to 'sys/linux/gen') diff --git a/sys/linux/gen/386.go b/sys/linux/gen/386.go index 631dfead5..450eda63d 100644 --- a/sys/linux/gen/386.go +++ b/sys/linux/gen/386.go @@ -1185,11 +1185,12 @@ var structDescs_386 = []*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}}}, @@ -1351,8 +1352,8 @@ var structDescs_386 = []*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}}}, @@ -1364,6 +1365,7 @@ var structDescs_386 = []*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: 28}, Fields: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_map", FldName: "map", TypeSize: 4}}, @@ -1441,7 +1443,7 @@ var structDescs_386 = []*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: 116}, 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"}}}, @@ -66169,6 +66171,7 @@ var consts_386 = []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}, @@ -66229,6 +66232,7 @@ var consts_386 = []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}, @@ -66255,6 +66259,7 @@ var consts_386 = []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}, @@ -66272,6 +66277,7 @@ var consts_386 = []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}, @@ -75767,4 +75773,4 @@ var consts_386 = []ConstValue{ {"ethtool_per_queue_op_size", 128}, } -const revision_386 = "0afe54727ed0b871182576f498f6a9395cdc9241" +const revision_386 = "d76225c209ba211f0cbd8a58459fca41b12a7081" diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go index bd105dc09..9c1a44f2a 100644 --- a/sys/linux/gen/amd64.go +++ b/sys/linux/gen/amd64.go @@ -1196,11 +1196,12 @@ var structDescs_amd64 = []*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}}}, @@ -1362,8 +1363,8 @@ var structDescs_amd64 = []*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}}}, @@ -1375,6 +1376,7 @@ var structDescs_amd64 = []*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}}, @@ -1456,7 +1458,7 @@ var structDescs_amd64 = []*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"}}}, @@ -67115,6 +67117,7 @@ var consts_amd64 = []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}, @@ -67175,6 +67178,7 @@ var consts_amd64 = []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}, @@ -67201,6 +67205,7 @@ var consts_amd64 = []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}, @@ -67218,6 +67223,7 @@ var consts_amd64 = []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}, @@ -76727,4 +76733,4 @@ var consts_amd64 = []ConstValue{ {"ethtool_per_queue_op_size", 128}, } -const revision_amd64 = "e9b59750bfeb5ce1db275aa01d6f5ddb637bfe30" +const revision_amd64 = "2610f27f2e315bef7a19967dd7a7f6fede0a78e8" diff --git a/sys/linux/gen/arm.go b/sys/linux/gen/arm.go index 772aecfac..1b14e473a 100644 --- a/sys/linux/gen/arm.go +++ b/sys/linux/gen/arm.go @@ -1192,11 +1192,12 @@ var structDescs_arm = []*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}}}, @@ -1358,8 +1359,8 @@ var structDescs_arm = []*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}}}, @@ -1371,6 +1372,7 @@ var structDescs_arm = []*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}}, @@ -1452,7 +1454,7 @@ var structDescs_arm = []*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"}}}, @@ -65886,6 +65888,7 @@ var consts_arm = []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}, @@ -65946,6 +65949,7 @@ var consts_arm = []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}, @@ -65972,6 +65976,7 @@ var consts_arm = []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}, @@ -65989,6 +65994,7 @@ var consts_arm = []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}, @@ -75419,4 +75425,4 @@ var consts_arm = []ConstValue{ {"ethtool_per_queue_op_size", 128}, } -const revision_arm = "4fed3faf5be570b2709d4eec9a60035d817e0550" +const revision_arm = "8507720a17d69db0e8a4a4e754a7babd01c9e112" diff --git a/sys/linux/gen/arm64.go b/sys/linux/gen/arm64.go index 09de35d4c..ec1c05ec5 100644 --- a/sys/linux/gen/arm64.go +++ b/sys/linux/gen/arm64.go @@ -1196,11 +1196,12 @@ var structDescs_arm64 = []*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}}}, @@ -1362,8 +1363,8 @@ var structDescs_arm64 = []*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}}}, @@ -1375,6 +1376,7 @@ var structDescs_arm64 = []*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}}, @@ -1456,7 +1458,7 @@ var structDescs_arm64 = []*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"}}}, @@ -66553,6 +66555,7 @@ var consts_arm64 = []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}, @@ -66613,6 +66616,7 @@ var consts_arm64 = []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}, @@ -66639,6 +66643,7 @@ var consts_arm64 = []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}, @@ -66656,6 +66661,7 @@ var consts_arm64 = []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}, @@ -76072,4 +76078,4 @@ var consts_arm64 = []ConstValue{ {"ethtool_per_queue_op_size", 128}, } -const revision_arm64 = "a9feb489f803feaa673070e884613aa32ac3b395" +const revision_arm64 = "0903361bbb7addaceedf18cc2b12fd792a240fb7" diff --git a/sys/linux/gen/mips64le.go b/sys/linux/gen/mips64le.go index c9f84daea..c0e9f9523 100644 --- a/sys/linux/gen/mips64le.go +++ b/sys/linux/gen/mips64le.go @@ -1193,11 +1193,12 @@ var structDescs_mips64le = []*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}, + &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}}}, @@ -1359,7 +1360,7 @@ var structDescs_mips64le = []*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{ + {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}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "ksize", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "vsize", TypeSize: 4}}}, @@ -1372,6 +1373,7 @@ var structDescs_mips64le = []*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}}, @@ -73733,4 +73735,4 @@ var consts_mips64le = []ConstValue{ {"ethtool_per_queue_op_size", 128}, } -const revision_mips64le = "2f1e10150fbd0f90bb261c1a8dec2fda48a91cb6" +const revision_mips64le = "2b84b657bff1ea3b7b3f73590543e4797622adbd" 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