-
Notifications
You must be signed in to change notification settings - Fork 716
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: flush Record when deadline is exceeded
Watermark and WakeupEvents allow reducing the rate at which user space is woken up. This creates an edge case where Read() returns os.ErrDeadlineExceeded even though there is data in one of the rings. This is also a problem in the ringbuf package, where we've solved this by checking whether there is any data when encountering an ErrDeadlineExceeded. Adopt the same approach for the perf reader. Signed-off-by: Lorenz Bauer <lmb@isovalent.com>
- Loading branch information
Showing
2 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters