Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libbpf-tools: fix biosnoop exit code
perf_buffer__poll returns a count or a negative error value. If the loop is broken because of timeout err needs to be zero or else an error is flagged. As the count may be non-zero, and this isn't an error, move the setting of err to zero earlier. This also allows switching a goto to a break.
- Loading branch information