summaryrefslogtreecommitdiff
path: root/tools/perf/tests
diff options
context:
space:
mode:
authorChristy Lee <christylee@fb.com>2022-01-25 03:59:23 +0300
committerAndrii Nakryiko <andrii@kernel.org>2022-01-25 07:44:09 +0300
commit5a34d98b282ec38219476f0f4b1b43160b15840a (patch)
tree6f0bdbb93977abd45c233fcfc05c95ad3d3d6523 /tools/perf/tests
parent9f45f70ab21eb2d3f4fcb41e4785abe380d406c5 (diff)
downloadlinux-5a34d98b282ec38219476f0f4b1b43160b15840a.tar.xz
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')
-rw-r--r--tools/perf/tests/llvm.c2
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);