Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: add "flush empty" ioctl for stream intersection
Changing the behavior of the "snapshot" lttng command to implicitly do a buffer "flush" (even when current packet is empty) had unwanted side-effects: for instance, the snapshot ABI is used by the live timer to grab the buffer positions, and we don't want to generate useless empty packets in that scenario. Therefore, add the "flush empty" behavior as a new ioctl to the ring buffer. This allows lttng-tools to perform buffer flush (even for empty packets) when it needs to. Given that this new ioctl is added within stable branches as well, lttng-tools always need to handle "-ENOSYS" gracefully. Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
- Loading branch information
Showing
5 changed files
with
25 additions
and
2 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