diff options
Diffstat (limited to 'sys/linux/gen/amd64.go')
| -rw-r--r-- | sys/linux/gen/amd64.go | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go index f7b9b0654..479487178 100644 --- a/sys/linux/gen/amd64.go +++ b/sys/linux/gen/amd64.go @@ -38,6 +38,7 @@ var resources_amd64 = []*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}}, @@ -1414,6 +1415,18 @@ 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_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}}}, @@ -50841,6 +50854,16 @@ var syscalls_amd64 = []*Syscall{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, &StructType{Key: StructKey{Name: "bpf_get_prog_info_arg"}}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 8}}, Path: []string{"arg"}}, }}, + {NR: 321, Name: "bpf$BPF_LINK_CREATE", CallName: "bpf", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 28}, + &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, &StructType{Key: StructKey{Name: "bpf_link_create_arg"}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 8}}, Path: []string{"arg"}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_link", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 321, Name: "bpf$BPF_LINK_UPDATE", CallName: "bpf", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 29}, + &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, &StructType{Key: StructKey{Name: "bpf_link_update_arg"}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 8}}, Path: []string{"arg"}}, + }}, {NR: 321, Name: "bpf$BPF_MAP_FREEZE", CallName: "bpf", Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 22}, &PtrType{TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_map", TypeSize: 4}}}, @@ -68953,6 +68976,8 @@ var consts_amd64 = []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}, @@ -78634,4 +78659,4 @@ var consts_amd64 = []ConstValue{ {"ethtool_per_queue_op_size", 128}, } -const revision_amd64 = "f07aa6db9e1d75799b08332473879aa587a35002" +const revision_amd64 = "410cd852480d3d0ee8998d07d4ce5fb187c7dc1b" |
