Skip to content

Commit

Permalink
btf, sys: update vmlinux.btf.gz to 6.6
Browse files Browse the repository at this point in the history
Update to released kernel version and generate syscall wrappers.

Signed-off-by: Lorenz Bauer <lmb@isovalent.com>
  • Loading branch information
lmb committed Nov 2, 2023
1 parent 9aaf284 commit fc13414
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 55 deletions.
Binary file modified btf/testdata/btf_testmod.btf
Binary file not shown.
Binary file modified btf/testdata/vmlinux.btf.gz
Binary file not shown.
7 changes: 4 additions & 3 deletions internal/cmd/gentypes/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,8 @@ import (
"ProgQuery", retError, "prog_query", "BPF_PROG_QUERY",
[]patch{
replace(enumTypes["AttachType"], "attach_type"),
replace(pointer, "prog_ids"),
replace(pointer, "prog_ids", "prog_attach_flags", "link_ids", "link_attach_flags"),
choose(5, "prog_cnt"),
rename("prog_cnt", "prog_count"),
},
},
Expand All @@ -462,7 +463,7 @@ import (
{"map_elem_batch", "batch"},
{"prog_load", "prog_type"},
{"obj_pin", "pathname"},
{"prog_attach", "target_fd"},
{"prog_attach", ""},
{"prog_run", "test"},
{"obj_next_id", ""},
{"info_by_fd", "info"},
Expand All @@ -478,7 +479,7 @@ import (
{"prog_bind_map", "prog_bind_map"},
})
if err != nil {
return nil, fmt.Errorf("splitting bpf_attr: %w", err)
return nil, fmt.Errorf("split bpf_attr: %w", err)
}

for _, s := range attrs {
Expand Down
127 changes: 75 additions & 52 deletions internal/sys/types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fc13414

Please sign in to comment.