Skip to content

Commit

Permalink
Use non-deprecated bpf_object__ API
Browse files Browse the repository at this point in the history
`bpf_program__next` was deprecated in libbpf 0.7.

Resolves #3784
  • Loading branch information
rocallahan committed Aug 17, 2024
1 parent 1470c9e commit 4f73299
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PerfCounters.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1138,7 +1138,7 @@ std::shared_ptr<BpfAccelerator> 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;
Expand Down

0 comments on commit 4f73299

Please sign in to comment.