projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement ring buffer clear
[lttng-modules.git]
/
lib
/
ringbuffer
/
vfs.h
diff --git
a/lib/ringbuffer/vfs.h
b/lib/ringbuffer/vfs.h
index b30b0f5814553f84915ab20a1982e062d5a20cc7..2061156dd1b19aba0ebab7cf01815ab4e7645f78 100644
(file)
--- a/
lib/ringbuffer/vfs.h
+++ b/
lib/ringbuffer/vfs.h
@@
-112,6
+112,8
@@
ssize_t vfs_lib_ring_buffer_splice_read(struct file *in, loff_t *ppos,
* so it can be read again.
*/
#define RING_BUFFER_METADATA_CACHE_DUMP _IO(0xF6, 0x10)
* so it can be read again.
*/
#define RING_BUFFER_METADATA_CACHE_DUMP _IO(0xF6, 0x10)
+/* Clear ring buffer content. */
+#define RING_BUFFER_CLEAR _IO(0xF6, 0x11)
#ifdef CONFIG_COMPAT
/* Get a snapshot of the current ring buffer producer and consumer positions */
#ifdef CONFIG_COMPAT
/* Get a snapshot of the current ring buffer producer and consumer positions */
@@
-156,6
+158,9
@@
ssize_t vfs_lib_ring_buffer_splice_read(struct file *in, loff_t *ppos,
/* Flush the current sub-buffer, even if empty. */
#define RING_BUFFER_COMPAT_FLUSH_EMPTY \
RING_BUFFER_FLUSH_EMPTY
/* Flush the current sub-buffer, even if empty. */
#define RING_BUFFER_COMPAT_FLUSH_EMPTY \
RING_BUFFER_FLUSH_EMPTY
+/* Clear ring buffer content. */
+#define RING_BUFFER_COMPAT_CLEAR \
+ RING_BUFFER_CLEAR
#endif /* CONFIG_COMPAT */
#endif /* _LIB_RING_BUFFER_VFS_H */
#endif /* CONFIG_COMPAT */
#endif /* _LIB_RING_BUFFER_VFS_H */
This page took
0.024547 seconds
and
4
git commands to generate.