OSDN Git Service

perf: Stop using bpf_object__open_buffer() API
authorChristy Lee <christylee@fb.com>
Tue, 25 Jan 2022 00:59:23 +0000 (16:59 -0800)
committerAndrii Nakryiko <andrii@kernel.org>
Tue, 25 Jan 2022 04:44:09 +0000 (20:44 -0800)
commit5a34d98b282ec38219476f0f4b1b43160b15840a
tree6f0bdbb93977abd45c233fcfc05c95ad3d3d6523
parent9f45f70ab21eb2d3f4fcb41e4785abe380d406c5
perf: Stop using bpf_object__open_buffer() API

bpf_object__open_buffer() API is deprecated, use the unified opts
bpf_object__open_mem() API in perf instead. This requires at least
libbpf 0.0.6.

Signed-off-by: Christy Lee <christylee@fb.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220125005923.418339-3-christylee@fb.com
tools/perf/tests/llvm.c
tools/perf/util/bpf-loader.c