From 4f732995021c40247eb02d5ddad524b04b880873 Mon Sep 17 00:00:00 2001 From: Robert O'Callahan Date: Sat, 17 Aug 2024 23:40:36 +1200 Subject: [PATCH] Use non-deprecated `bpf_object__` API `bpf_program__next` was deprecated in libbpf 0.7. Resolves #3784 --- src/PerfCounters.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PerfCounters.cc b/src/PerfCounters.cc index 2bd9f964c40..88ce8021acb 100644 --- a/src/PerfCounters.cc +++ b/src/PerfCounters.cc @@ -1138,7 +1138,7 @@ std::shared_ptr BpfAccelerator::singleton; CLEAN_FATAL() << "rr's bpf at " << path << " is corrupt"; return nullptr; } - struct bpf_program* prog = bpf_program__next(NULL, obj); + struct bpf_program* prog = bpf_object__next_program(obj, nullptr); if (!prog) { CLEAN_FATAL() << "rr's bpf at " << path << " is corrupt"; return nullptr;