diff options
Diffstat (limited to 'sys/linux/gen/arm.go')
| -rw-r--r-- | sys/linux/gen/arm.go | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/sys/linux/gen/arm.go b/sys/linux/gen/arm.go index 1d72c7861..217c083bb 100644 --- a/sys/linux/gen/arm.go +++ b/sys/linux/gen/arm.go @@ -38,6 +38,7 @@ var resources_arm = []*ResourceDesc{ {Name: "fd_binder", Kind: []string{"fd", "fd_binder"}, Values: []uint64{18446744073709551615}}, {Name: "fd_block", Kind: []string{"fd", "fd_block_trace", "fd_block"}, Values: []uint64{18446744073709551615}}, {Name: "fd_block_trace", Kind: []string{"fd", "fd_block_trace"}, Values: []uint64{18446744073709551615}}, + {Name: "fd_bpf_link", Kind: []string{"fd", "fd_bpf_link"}, Values: []uint64{18446744073709551615}}, {Name: "fd_bpf_map", Kind: []string{"fd", "fd_bpf_map"}, Values: []uint64{18446744073709551615, 1}}, {Name: "fd_bpf_prog", Kind: []string{"fd", "fd_bpf_prog"}, Values: []uint64{18446744073709551615}}, {Name: "fd_btf", Kind: []string{"fd", "fd_btf"}, Values: []uint64{18446744073709551615}}, @@ -1410,6 +1411,18 @@ 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_link_create_arg"}, &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_link_create_arg", TypeSize: 16}, Fields: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_prog", FldName: "prog_fd", TypeSize: 4}}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cgroup", FldName: "target_fd", TypeSize: 4}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_attach_types_link_create", FldName: "attach_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}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 4}}}, + }}}, + {StructKey{Name: "bpf_link_update_arg"}, &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_link_update_arg", TypeSize: 16}, Fields: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_link", FldName: "link_fd", TypeSize: 4}}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_prog", FldName: "new_prog_fd", TypeSize: 4}}, + &FlagsType{IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_link_update_flags", FldName: "flags", TypeSize: 4}}, []uint64{4}, true}, + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_prog", FldName: "old_prog_fd", TypeSize: 4}}, + }}}, {StructKey{Name: "bpf_map_batch_arg"}, &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_map_batch_arg", TypeSize: 56}, Fields: []Type{ &PtrType{TypeCommon{TypeName: "ptr64", FldName: "in_batch", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}}, &PtrType{TypeCommon{TypeName: "ptr64", FldName: "out_batch", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}}, @@ -49742,6 +49755,16 @@ var syscalls_arm = []*Syscall{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, &StructType{Key: StructKey{Name: "bpf_get_prog_info_arg"}}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 4}}, Path: []string{"arg"}}, }}, + {NR: 386, Name: "bpf$BPF_LINK_CREATE", CallName: "bpf", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 28}, + &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, &StructType{Key: StructKey{Name: "bpf_link_create_arg"}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 4}}, Path: []string{"arg"}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_link", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 386, Name: "bpf$BPF_LINK_UPDATE", CallName: "bpf", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 29}, + &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, &StructType{Key: StructKey{Name: "bpf_link_update_arg"}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 4}}, Path: []string{"arg"}}, + }}, {NR: 386, Name: "bpf$BPF_MAP_FREEZE", CallName: "bpf", Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 22}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_map", TypeSize: 4}}}, @@ -67644,6 +67667,8 @@ var consts_arm = []ConstValue{ {Name: "BPF_LD"}, {"BPF_LDX", 1}, {"BPF_LINE_INFO_SIZE", 16}, + {"BPF_LINK_CREATE", 28}, + {"BPF_LINK_UPDATE", 29}, {"BPF_LIRC_MODE2", 16}, {"BPF_LSH0", 6}, {"BPF_LSM_MAC", 27}, @@ -77246,4 +77271,4 @@ var consts_arm = []ConstValue{ {"ethtool_per_queue_op_size", 128}, } -const revision_arm = "783b0fea1189d5d419ec1d36ba665ed69bb08fe4" +const revision_arm = "30e8968b79e122c7b00e8f1e06a2a7e806e2e484" |
