libbpf: Deprecate bpf_object__load_xattr()
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 9 Dec 2021 19:38:36 +0000 (11:38 -0800)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 10 Dec 2021 23:29:18 +0000 (15:29 -0800)
commite7b924ca715f0d1c0be62b205c36c4076b335421
tree7b1fcf9b6b6e92009adb265dd17556c0a62134bc
parentb3ce907950350a58880b94fed2b6022f160b8b9a
libbpf: Deprecate bpf_object__load_xattr()

Deprecate non-extensible bpf_object__load_xattr() in v0.8 ([0]).

With log_level control through bpf_object_open_opts or
bpf_program__set_log_level(), we are finally at the point where
bpf_object__load_xattr() doesn't provide any functionality that can't be
accessed through other (better) ways. The other feature,
target_btf_path, is also controllable through bpf_object_open_opts.

  [0] Closes: https://github.com/libbpf/libbpf/issues/289

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20211209193840.1248570-9-andrii@kernel.org
tools/lib/bpf/libbpf.c
tools/lib/bpf/libbpf.h