projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: sample discarded events count before reserve
[lttng-modules.git]
/
include
/
ringbuffer
/
config.h
diff --git
a/include/ringbuffer/config.h
b/include/ringbuffer/config.h
index 34f8a5da22e08935c659c8425d47e35184f1a2ff..43523de3055b55414a969d1ac30bee9610615e2c 100644
(file)
--- a/
include/ringbuffer/config.h
+++ b/
include/ringbuffer/config.h
@@
-44,7
+44,8
@@
struct lttng_kernel_ring_buffer_client_cb {
void (*buffer_begin) (struct lttng_kernel_ring_buffer *buf, u64 tsc,
unsigned int subbuf_idx);
void (*buffer_end) (struct lttng_kernel_ring_buffer *buf, u64 tsc,
void (*buffer_begin) (struct lttng_kernel_ring_buffer *buf, u64 tsc,
unsigned int subbuf_idx);
void (*buffer_end) (struct lttng_kernel_ring_buffer *buf, u64 tsc,
- unsigned int subbuf_idx, unsigned long data_size);
+ unsigned int subbuf_idx, unsigned long data_size,
+ const struct lttng_kernel_ring_buffer_ctx *ctx);
/* Optional callbacks (can be set to NULL) */
/* Optional callbacks (can be set to NULL) */
@@
-189,6
+190,14
@@
struct lttng_kernel_ring_buffer_ctx_private {
* for this channel
*/
struct lttng_kernel_ring_buffer_backend_pages *backend_pages;
* for this channel
*/
struct lttng_kernel_ring_buffer_backend_pages *backend_pages;
+
+ /*
+ * Records lost counts are only loaded into these fields before
+ * reserving the last bytes from the ring buffer.
+ */
+ unsigned long records_lost_full;
+ unsigned long records_lost_wrap;
+ unsigned long records_lost_big;
};
/*
};
/*
This page took
0.023298 seconds
and
4
git commands to generate.