projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: tie compaction probe build to CONFIG_COMPACTION
[lttng-modules.git]
/
include
/
ringbuffer
/
config.h
diff --git
a/include/ringbuffer/config.h
b/include/ringbuffer/config.h
index d6dc5af6afcf61b40b9e5eb3161238a07158bad6..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) */
@@
-184,11
+185,19
@@
struct lttng_kernel_ring_buffer_ctx_private {
u64 tsc; /* time-stamp counter value */
unsigned int rflags; /* reservation flags */
u64 tsc; /* time-stamp counter value */
unsigned int rflags; /* reservation flags */
- struct lttng_kernel_ring_buffer *buf;
/*
+ struct lttng_kernel_ring_buffer *buf; /*
* buffer corresponding to processor id
* for this channel
*/
struct lttng_kernel_ring_buffer_backend_pages *backend_pages;
* buffer corresponding to processor id
* 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.072747 seconds
and
4
git commands to generate.