History

libbpf: Add support for attaching BPF programs to other BPF programs

Extend libbpf api to pass attach_prog_fd into bpf_object__open.

Alexei Starovoitov committed 6 years ago

Commit e7bf94d1 parent 5b92a285 files · +71 −17Browse files

Showing the changes to tools/include/uapi/linux (1 of 5 files). Show all

Unified · Split

tools/include/uapi/linux/bpf.h+1−0
@@ -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 */