-
Notifications
You must be signed in to change notification settings - Fork 381
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tetragon: Add queue between perf reader and sensor processing code
Adding extra layer between perf ring buffer reader and event processing by sensor code. Basically it's new channel (default size 65k) that is written by perf ringbuffer reader and read by new go routine that processes these events. This way we keep the perf reader fast and we won't get lost events if sensor processing code have a hiccup and takes longer. When the eventsQueue channel is full we drop the event. It's configurable by new --events-queue-size option, the default is 65k. Signed-off-by: Jiri Olsa <jolsa@kernel.org>
- Loading branch information
Showing
4 changed files
with
43 additions
and
3 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