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;