libbpf: Mark bpf_object__find_program_by_title API deprecated.
authorKui-Feng Lee <kuifeng@fb.com>
Tue, 14 Dec 2021 03:59:31 +0000 (19:59 -0800)
committerAndrii Nakryiko <andrii@kernel.org>
Tue, 14 Dec 2021 22:38:06 +0000 (14:38 -0800)
commit0da2596f343c0b234344ec47d51cbce3bde23dea
tree1de4b9338ff0a0dc97601959191fd0baa920254c
parentb098f33692d75d184a3ab62095c376fd0e52d880
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
tools/lib/bpf/libbpf.h