-
Notifications
You must be signed in to change notification settings - Fork 708
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ringbuf: check for available data on timeout
BPF can suppress notifications of user space ringbuf readers by specifying the BPF_RB_NO_WAKEUP flag. This is useful in high-throughput scenarios to emit a wake up for every Nth event only. The problem is that some writes may stay un-flushed in the buffer for a long time. Check whether the ring buffer is really empty when the deadline expires. This way it's possible to express the maximum duration one is willing to wait for a flush. Co-authored-by: Lorenz Bauer <[email protected]> Signed-off-by: Ron Federman <[email protected]>
- Loading branch information
Showing
5 changed files
with
89 additions
and
21 deletions.
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
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
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