Skip to content

Commit efa4756

Browse files
Jianyun Gaoanakryiko
authored andcommitted
libbpf: Update the comment to remove the reference to the deprecated interface bpf_program__load().
Commit be2f2d1 ("libbpf: Deprecate bpf_program__load() API") marked bpf_program__load() as deprecated starting with libbpf v0.6. And later in commit 146bf81 ("libbpf: remove most other deprecated high-level APIs") actually removed the bpf_program__load() implementation and related old high-level APIs. This patch update the comment in bpf_program__set_attach_target() to remove the reference to the deprecated interface bpf_program__load(). Signed-off-by: Jianyun Gao <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 74bd7bc commit efa4756

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/lib/bpf/libbpf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13858,8 +13858,8 @@ int bpf_program__set_attach_target(struct bpf_program *prog,
1385813858
return libbpf_err(-EINVAL);
1385913859

1386013860
if (attach_prog_fd && !attach_func_name) {
13861-
/* remember attach_prog_fd and let bpf_program__load() find
13862-
* BTF ID during the program load
13861+
/* Store attach_prog_fd. The BTF ID will be resolved later during
13862+
* the normal object/program load phase.
1386313863
*/
1386413864
prog->attach_prog_fd = attach_prog_fd;
1386513865
return 0;

0 commit comments

Comments
 (0)