aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/gen
diff options
context:
space:
mode:
authorPaul Chaignon <paul.chaignon@orange.com>2019-05-29 11:13:01 +0200
committerDmitry Vyukov <dvyukov@google.com>2019-05-29 16:17:05 +0200
commitd9aaf3c2880a46e1ded81325f2f62ce911239187 (patch)
tree54f97efad3c40238ff2f8170128a7efd050e6575 /sys/linux/gen
parent2673c530796e97292a8326a8ca94e7ae79b4fd27 (diff)
sys/linux: add missing BPF constants
Signed-off-by: Paul Chaignon <paul.chaignon@orange.com>
Diffstat (limited to 'sys/linux/gen')
-rw-r--r--sys/linux/gen/386.go10
-rw-r--r--sys/linux/gen/amd64.go10
-rw-r--r--sys/linux/gen/arm.go10
-rw-r--r--sys/linux/gen/arm64.go10
-rw-r--r--sys/linux/gen/ppc64le.go10
5 files changed, 30 insertions, 20 deletions
diff --git a/sys/linux/gen/386.go b/sys/linux/gen/386.go
index 53c0db4b9..e7fdb2beb 100644
--- a/sys/linux/gen/386.go
+++ b/sys/linux/gen/386.go
@@ -1222,7 +1222,7 @@ var structDescs_386 = []*KeyedStruct{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "key", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "val", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_map_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 1, 2}, BitMask: true},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_map_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 4}, BitMask: true},
}}},
{Key: StructKey{Name: "bpf_obj_get"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_obj_get", TypeSize: 16}, Fields: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "path", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}},
@@ -1251,7 +1251,7 @@ var structDescs_386 = []*KeyedStruct{
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "logsize", TypeSize: 4}}, Path: []string{"log"}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "log", TypeSize: 8, IsOptional: true}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_kern_version", FldName: "kern_version", TypeSize: 4}}, Vals: []uint64{265984, 266240, 266496}},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_load_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1}, BitMask: true},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_load_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2}, BitMask: true},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "prog_name", TypeSize: 16}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}}, Kind: 1, RangeBegin: 16, RangeEnd: 16},
&ResourceType{TypeCommon: TypeCommon{TypeName: "ifindex", FldName: "prog_ifindex", TypeSize: 4, IsOptional: true}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_attach_type", FldName: "expected_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}},
@@ -1300,7 +1300,7 @@ var structDescs_386 = []*KeyedStruct{
}, AlignAttr: 8}},
{Key: StructKey{Name: "bpf_prog_query"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_prog_query", TypeSize: 32}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cgroup", FldName: "target_fd", TypeSize: 4}},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_query_attach_type", FldName: "attach_type", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 6}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_query_attach_type", FldName: "attach_type", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 6, 8, 10, 12, 9, 11, 13, 14, 15, 16}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_query_flags", FldName: "query_flags", TypeSize: 4}}, Vals: []uint64{1}, BitMask: true},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "attach_flags", TypeSize: 4}}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "prog_ids", TypeSize: 8}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}}},
@@ -43688,6 +43688,8 @@ var consts_386 = []ConstValue{
{Name: "BPF_FUNC_INFO_SIZE", Value: 8},
{Name: "BPF_F_ALLOW_MULTI", Value: 2},
{Name: "BPF_F_ALLOW_OVERRIDE", Value: 1},
+ {Name: "BPF_F_ANY_ALIGNMENT", Value: 2},
+ {Name: "BPF_F_LOCK", Value: 4},
{Name: "BPF_F_NO_COMMON_LRU", Value: 2},
{Name: "BPF_F_NO_PREALLOC", Value: 1},
{Name: "BPF_F_NUMA_NODE", Value: 4},
@@ -51097,4 +51099,4 @@ var consts_386 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_386 = "a9923073ced74fe65f1693b75e5dedcc022d71f9"
+const revision_386 = "252e63c7c886bfb7430023673f34726b066c10b6"
diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go
index 927a7b612..cd161bbe8 100644
--- a/sys/linux/gen/amd64.go
+++ b/sys/linux/gen/amd64.go
@@ -1225,7 +1225,7 @@ var structDescs_amd64 = []*KeyedStruct{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "key", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "val", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_map_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 1, 2}, BitMask: true},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_map_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 4}, BitMask: true},
}}},
{Key: StructKey{Name: "bpf_obj_get"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_obj_get", TypeSize: 16}, Fields: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "path", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}},
@@ -1254,7 +1254,7 @@ var structDescs_amd64 = []*KeyedStruct{
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "logsize", TypeSize: 4}}, Path: []string{"log"}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "log", TypeSize: 8, IsOptional: true}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_kern_version", FldName: "kern_version", TypeSize: 4}}, Vals: []uint64{265984, 266240, 266496}},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_load_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1}, BitMask: true},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_load_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2}, BitMask: true},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "prog_name", TypeSize: 16}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}}, Kind: 1, RangeBegin: 16, RangeEnd: 16},
&ResourceType{TypeCommon: TypeCommon{TypeName: "ifindex", FldName: "prog_ifindex", TypeSize: 4, IsOptional: true}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_attach_type", FldName: "expected_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}},
@@ -1303,7 +1303,7 @@ var structDescs_amd64 = []*KeyedStruct{
}, AlignAttr: 8}},
{Key: StructKey{Name: "bpf_prog_query"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_prog_query", TypeSize: 32}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cgroup", FldName: "target_fd", TypeSize: 4}},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_query_attach_type", FldName: "attach_type", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 6}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_query_attach_type", FldName: "attach_type", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 6, 8, 10, 12, 9, 11, 13, 14, 15, 16}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_query_flags", FldName: "query_flags", TypeSize: 4}}, Vals: []uint64{1}, BitMask: true},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "attach_flags", TypeSize: 4}}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "prog_ids", TypeSize: 8}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}}},
@@ -44195,6 +44195,8 @@ var consts_amd64 = []ConstValue{
{Name: "BPF_FUNC_INFO_SIZE", Value: 8},
{Name: "BPF_F_ALLOW_MULTI", Value: 2},
{Name: "BPF_F_ALLOW_OVERRIDE", Value: 1},
+ {Name: "BPF_F_ANY_ALIGNMENT", Value: 2},
+ {Name: "BPF_F_LOCK", Value: 4},
{Name: "BPF_F_NO_COMMON_LRU", Value: 2},
{Name: "BPF_F_NO_PREALLOC", Value: 1},
{Name: "BPF_F_NUMA_NODE", Value: 4},
@@ -51619,4 +51621,4 @@ var consts_amd64 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_amd64 = "d5eddd1c0de412cf0e6a9c907193d4b289f39cfe"
+const revision_amd64 = "7431a40dcf12567f9cc02a3577c0a5fc91672585"
diff --git a/sys/linux/gen/arm.go b/sys/linux/gen/arm.go
index 11594d2e4..13401aca1 100644
--- a/sys/linux/gen/arm.go
+++ b/sys/linux/gen/arm.go
@@ -1220,7 +1220,7 @@ var structDescs_arm = []*KeyedStruct{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "key", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "val", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_map_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 1, 2}, BitMask: true},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_map_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 4}, BitMask: true},
}}},
{Key: StructKey{Name: "bpf_obj_get"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_obj_get", TypeSize: 16}, Fields: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "path", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}},
@@ -1249,7 +1249,7 @@ var structDescs_arm = []*KeyedStruct{
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "logsize", TypeSize: 4}}, Path: []string{"log"}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "log", TypeSize: 8, IsOptional: true}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_kern_version", FldName: "kern_version", TypeSize: 4}}, Vals: []uint64{265984, 266240, 266496}},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_load_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1}, BitMask: true},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_load_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2}, BitMask: true},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "prog_name", TypeSize: 16}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}}, Kind: 1, RangeBegin: 16, RangeEnd: 16},
&ResourceType{TypeCommon: TypeCommon{TypeName: "ifindex", FldName: "prog_ifindex", TypeSize: 4, IsOptional: true}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_attach_type", FldName: "expected_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}},
@@ -1298,7 +1298,7 @@ var structDescs_arm = []*KeyedStruct{
}, AlignAttr: 8}},
{Key: StructKey{Name: "bpf_prog_query"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_prog_query", TypeSize: 32}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cgroup", FldName: "target_fd", TypeSize: 4}},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_query_attach_type", FldName: "attach_type", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 6}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_query_attach_type", FldName: "attach_type", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 6, 8, 10, 12, 9, 11, 13, 14, 15, 16}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_query_flags", FldName: "query_flags", TypeSize: 4}}, Vals: []uint64{1}, BitMask: true},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "attach_flags", TypeSize: 4}}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "prog_ids", TypeSize: 8}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}}},
@@ -43244,6 +43244,8 @@ var consts_arm = []ConstValue{
{Name: "BPF_FUNC_INFO_SIZE", Value: 8},
{Name: "BPF_F_ALLOW_MULTI", Value: 2},
{Name: "BPF_F_ALLOW_OVERRIDE", Value: 1},
+ {Name: "BPF_F_ANY_ALIGNMENT", Value: 2},
+ {Name: "BPF_F_LOCK", Value: 4},
{Name: "BPF_F_NO_COMMON_LRU", Value: 2},
{Name: "BPF_F_NO_PREALLOC", Value: 1},
{Name: "BPF_F_NUMA_NODE", Value: 4},
@@ -50584,4 +50586,4 @@ var consts_arm = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_arm = "b944a5e8b7f1b5be708c71b1ed79703601482e3c"
+const revision_arm = "e097ac57433caba996cedfceb3c58b275c422c60"
diff --git a/sys/linux/gen/arm64.go b/sys/linux/gen/arm64.go
index ca14ac76e..6f6028520 100644
--- a/sys/linux/gen/arm64.go
+++ b/sys/linux/gen/arm64.go
@@ -1223,7 +1223,7 @@ var structDescs_arm64 = []*KeyedStruct{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "key", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "val", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_map_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 1, 2}, BitMask: true},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_map_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 4}, BitMask: true},
}}},
{Key: StructKey{Name: "bpf_obj_get"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_obj_get", TypeSize: 16}, Fields: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "path", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}},
@@ -1252,7 +1252,7 @@ var structDescs_arm64 = []*KeyedStruct{
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "logsize", TypeSize: 4}}, Path: []string{"log"}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "log", TypeSize: 8, IsOptional: true}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_kern_version", FldName: "kern_version", TypeSize: 4}}, Vals: []uint64{265984, 266240, 266496}},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_load_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1}, BitMask: true},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_load_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2}, BitMask: true},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "prog_name", TypeSize: 16}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}}, Kind: 1, RangeBegin: 16, RangeEnd: 16},
&ResourceType{TypeCommon: TypeCommon{TypeName: "ifindex", FldName: "prog_ifindex", TypeSize: 4, IsOptional: true}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_attach_type", FldName: "expected_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}},
@@ -1301,7 +1301,7 @@ var structDescs_arm64 = []*KeyedStruct{
}, AlignAttr: 8}},
{Key: StructKey{Name: "bpf_prog_query"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_prog_query", TypeSize: 32}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cgroup", FldName: "target_fd", TypeSize: 4}},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_query_attach_type", FldName: "attach_type", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 6}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_query_attach_type", FldName: "attach_type", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 6, 8, 10, 12, 9, 11, 13, 14, 15, 16}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_query_flags", FldName: "query_flags", TypeSize: 4}}, Vals: []uint64{1}, BitMask: true},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "attach_flags", TypeSize: 4}}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "prog_ids", TypeSize: 8}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}}},
@@ -43557,6 +43557,8 @@ var consts_arm64 = []ConstValue{
{Name: "BPF_FUNC_INFO_SIZE", Value: 8},
{Name: "BPF_F_ALLOW_MULTI", Value: 2},
{Name: "BPF_F_ALLOW_OVERRIDE", Value: 1},
+ {Name: "BPF_F_ANY_ALIGNMENT", Value: 2},
+ {Name: "BPF_F_LOCK", Value: 4},
{Name: "BPF_F_NO_COMMON_LRU", Value: 2},
{Name: "BPF_F_NO_PREALLOC", Value: 1},
{Name: "BPF_F_NUMA_NODE", Value: 4},
@@ -50879,4 +50881,4 @@ var consts_arm64 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_arm64 = "73c90bce519e4ba84dc96c1d473f5bfad1b0e6b2"
+const revision_arm64 = "eb39cecc8e78b3772e42259f7898b6aa6852f7f4"
diff --git a/sys/linux/gen/ppc64le.go b/sys/linux/gen/ppc64le.go
index e08779dfa..7879b32a6 100644
--- a/sys/linux/gen/ppc64le.go
+++ b/sys/linux/gen/ppc64le.go
@@ -1222,7 +1222,7 @@ var structDescs_ppc64le = []*KeyedStruct{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "key", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "val", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_map_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 1, 2}, BitMask: true},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_map_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 4}, BitMask: true},
}}},
{Key: StructKey{Name: "bpf_obj_get"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_obj_get", TypeSize: 16}, Fields: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "path", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", IsVarlen: true}, Kind: 3}},
@@ -1251,7 +1251,7 @@ var structDescs_ppc64le = []*KeyedStruct{
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "logsize", TypeSize: 4}}, Path: []string{"log"}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "log", TypeSize: 8, IsOptional: true}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_kern_version", FldName: "kern_version", TypeSize: 4}}, Vals: []uint64{265984, 266240, 266496}},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_load_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1}, BitMask: true},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_load_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2}, BitMask: true},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "prog_name", TypeSize: 16}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}}, Kind: 1, RangeBegin: 16, RangeEnd: 16},
&ResourceType{TypeCommon: TypeCommon{TypeName: "ifindex", FldName: "prog_ifindex", TypeSize: 4, IsOptional: true}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_attach_type", FldName: "expected_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}},
@@ -1300,7 +1300,7 @@ var structDescs_ppc64le = []*KeyedStruct{
}, AlignAttr: 8}},
{Key: StructKey{Name: "bpf_prog_query"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_prog_query", TypeSize: 32}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_cgroup", FldName: "target_fd", TypeSize: 4}},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_query_attach_type", FldName: "attach_type", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 6}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_query_attach_type", FldName: "attach_type", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3, 6, 8, 10, 12, 9, 11, 13, 14, 15, 16}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_prog_query_flags", FldName: "query_flags", TypeSize: 4}}, Vals: []uint64{1}, BitMask: true},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "attach_flags", TypeSize: 4}}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "prog_ids", TypeSize: 8}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}}},
@@ -43551,6 +43551,8 @@ var consts_ppc64le = []ConstValue{
{Name: "BPF_FUNC_INFO_SIZE", Value: 8},
{Name: "BPF_F_ALLOW_MULTI", Value: 2},
{Name: "BPF_F_ALLOW_OVERRIDE", Value: 1},
+ {Name: "BPF_F_ANY_ALIGNMENT", Value: 2},
+ {Name: "BPF_F_LOCK", Value: 4},
{Name: "BPF_F_NO_COMMON_LRU", Value: 2},
{Name: "BPF_F_NO_PREALLOC", Value: 1},
{Name: "BPF_F_NUMA_NODE", Value: 4},
@@ -50846,4 +50848,4 @@ var consts_ppc64le = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_ppc64le = "2cc0b2b4af5c720a074c85161215a3b5977d3e84"
+const revision_ppc64le = "5e5ccab1fc7a30860776663abeee093b857a2c0f"