On Thu, Dec 30, 2021 at 12:40 PM Christy Lee <christylee@xxxxxx> wrote: > > Deprecate bpf_object__open(), bpf_object__open_buffer(), and > bpf_object__open_xattr() in favor of bpf_object__open_file() and > bpf_object__open_mem(). > > [0] Closes: https://github.com/libbpf/libbpf/issues/287 > Looks good overall, see a nit about libbpf_ptr(). But please also split out selftests, perf, bpftool changes into separate commits. Thanks! > Christy Lee (3): > libbpf: deprecate bpf_object__open() API > libbpf: deprecate bpf_object__open_buffer() API > libbpf: deprecate bpf_object__open_xattr() API > > Documentation/bpf/prog_lsm.rst | 2 +- > tools/bpf/bpftool/Documentation/bpftool-gen.rst | 2 +- > tools/bpf/bpftool/iter.c | 2 +- > tools/build/feature/test-libbpf.c | 2 +- > tools/lib/bpf/libbpf.c | 2 +- > tools/lib/bpf/libbpf.h | 7 +++++-- > tools/perf/tests/llvm.c | 2 +- > tools/perf/util/bpf-loader.c | 7 +++++-- > tools/testing/selftests/bpf/prog_tests/btf.c | 2 +- > tools/testing/selftests/bpf/prog_tests/select_reuseport.c | 2 +- > tools/testing/selftests/bpf/test_maps.c | 4 ++-- > tools/testing/selftests/bpf/test_sockmap.c | 2 +- > 12 files changed, 21 insertions(+), 15 deletions(-) > > -- > 2.30.2