diff options
author | Christy Lee <christylee@fb.com> | 2022-01-24 16:59:23 -0800 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2022-01-24 20:44:09 -0800 |
commit | 5a34d98b282ec38219476f0f4b1b43160b15840a (patch) | |
tree | 6f0bdbb93977abd45c233fcfc05c95ad3d3d6523 /tools/perf/tests/llvm.c | |
parent | 9f45f70ab21eb2d3f4fcb41e4785abe380d406c5 (diff) | |
download | lwn-5a34d98b282ec38219476f0f4b1b43160b15840a.tar.gz lwn-5a34d98b282ec38219476f0f4b1b43160b15840a.zip |
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
Diffstat (limited to 'tools/perf/tests/llvm.c')
-rw-r--r-- | tools/perf/tests/llvm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/tests/llvm.c b/tools/perf/tests/llvm.c index 8ac0a3a457ef..0bc25a56cfef 100644 --- a/tools/perf/tests/llvm.c +++ b/tools/perf/tests/llvm.c @@ -13,7 +13,7 @@ static int test__bpf_parsing(void *obj_buf, size_t obj_buf_sz) { struct bpf_object *obj; - obj = bpf_object__open_buffer(obj_buf, obj_buf_sz, NULL); + obj = bpf_object__open_mem(obj_buf, obj_buf_sz, NULL); if (libbpf_get_error(obj)) return TEST_FAIL; bpf_object__close(obj); |