projects
/
lttng-ust.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-ust.git]
/
src
/
common
/
ringbuffer
/
frontend_types.h
diff --git
a/src/common/ringbuffer/frontend_types.h
b/src/common/ringbuffer/frontend_types.h
index 5765579769cc84d50b9031f7985e62f27abbd6d2..1b0e1a080e6bb15d79459d516c6b1eb56a81bb7e 100644
(file)
--- a/
src/common/ringbuffer/frontend_types.h
+++ b/
src/common/ringbuffer/frontend_types.h
@@
-120,7
+120,7
@@
enum lttng_crash_type {
struct lttng_crash_abi {
uint8_t magic[RB_CRASH_DUMP_ABI_MAGIC_LEN];
struct lttng_crash_abi {
uint8_t magic[RB_CRASH_DUMP_ABI_MAGIC_LEN];
- uint64_t mmap_length; /* Overall leng
ht
of crash record */
+ uint64_t mmap_length; /* Overall leng
th
of crash record */
uint16_t endian; /*
* { 0x12, 0x34 }: big endian
* { 0x34, 0x12 }: little endian
uint16_t endian; /*
* { 0x12, 0x34 }: big endian
* { 0x34, 0x12 }: little endian
@@
-253,13
+253,19
@@
struct lttng_ust_ring_buffer_ctx_private {
*/
uint64_t tsc; /* time-stamp counter value */
unsigned int rflags; /* reservation flags */
*/
uint64_t tsc; /* time-stamp counter value */
unsigned int rflags; /* reservation flags */
- void *ip; /* caller ip address */
-
struct lttng_ust_ring_buffer *buf; /*
* buffer corresponding to processor id
* for this channel
*/
struct lttng_ust_ring_buffer_backend_pages *backend_pages;
struct lttng_ust_ring_buffer *buf; /*
* buffer corresponding to processor id
* for this channel
*/
struct lttng_ust_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;
};
static inline
};
static inline
This page took
0.024507 seconds
and
4
git commands to generate.