summaryrefslogtreecommitdiff
path: root/tools/lib
diff options
context:
space:
mode:
authorKui-Feng Lee <kuifeng@fb.com>2021-12-14 06:59:31 +0300
committerAndrii Nakryiko <andrii@kernel.org>2021-12-15 01:38:06 +0300
commit0da2596f343c0b234344ec47d51cbce3bde23dea (patch)
tree1de4b9338ff0a0dc97601959191fd0baa920254c /tools/lib
parentb098f33692d75d184a3ab62095c376fd0e52d880 (diff)
downloadlinux-0da2596f343c0b234344ec47d51cbce3bde23dea.tar.xz
libbpf: Mark bpf_object__find_program_by_title API deprecated.
Deprecate this API since v0.7. All callers should move to bpf_object__find_program_by_name if possible, otherwise use bpf_object__for_each_program to find a program out from a given section. [0] Closes: https://github.com/libbpf/libbpf/issues/292 Signed-off-by: Kui-Feng Lee <kuifeng@fb.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20211214035931.1148209-5-kuifeng@fb.com
Diffstat (limited to 'tools/lib')
-rw-r--r--tools/lib/bpf/libbpf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/lib/bpf/libbpf.h b/tools/lib/bpf/libbpf.h
index 3f5ff2c09dfe..42b2f36fd9f0 100644
--- a/tools/lib/bpf/libbpf.h
+++ b/tools/lib/bpf/libbpf.h
@@ -227,6 +227,7 @@ struct btf;
LIBBPF_API struct btf *bpf_object__btf(const struct bpf_object *obj);
LIBBPF_API int bpf_object__btf_fd(const struct bpf_object *obj);
+LIBBPF_DEPRECATED_SINCE(0, 7, "use bpf_object__find_program_by_name() instead")
LIBBPF_API struct bpf_program *
bpf_object__find_program_by_title(const struct bpf_object *obj,
const char *title);