aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/gen/arm.go
diff options
context:
space:
mode:
authorPaul Chaignon <paul.chaignon@gmail.com>2020-02-15 20:58:08 +0100
committerDmitry Vyukov <dvyukov@google.com>2020-02-16 10:22:29 +0100
commit88f115c9699ca2f4fe25e29c5f97691be179a8a3 (patch)
treedefc2ef005081814e893def56d64f5b76b429c7f /sys/linux/gen/arm.go
parent5d7b90f1af2e3bf33992b75e7fcf0bab6bf49bd6 (diff)
sys/linux: update BPF constants and structures
Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
Diffstat (limited to 'sys/linux/gen/arm.go')
-rw-r--r--sys/linux/gen/arm.go18
1 files changed, 12 insertions, 6 deletions
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"