Extend libbpf api to pass attach_prog_fd into bpf_object__open.
Showing the changes to tools/include/uapi/linux (1 of 5 files). Show all
Unified · Split
| @@ -425,6 +425,7 @@ union bpf_attr { · 424 unmodified lines | |||
| 425 | __aligned_u64 line_info; /* line info */ | 425 | __aligned_u64 line_info; /* line info */ |
| 426 | __u32 line_info_cnt; /* number of bpf_line_info records */ | 426 | __u32 line_info_cnt; /* number of bpf_line_info records */ |
| 427 | __u32 attach_btf_id; /* in-kernel BTF type id to attach to */ | 427 | __u32 attach_btf_id; /* in-kernel BTF type id to attach to */ |
| 428 | __u32 attach_prog_fd; /* 0 to attach to vmlinux */ | ||
| 428 | }; | 429 | }; |
| 429 | 430 | ||
| 430 | struct { /* anonymous struct used by BPF_OBJ_* commands */ | 431 | struct { /* anonymous struct used by BPF_OBJ_* commands */ |