projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename "tsc" to "timestamp"
[lttng-modules.git]
/
include
/
ringbuffer
/
config.h
diff --git
a/include/ringbuffer/config.h
b/include/ringbuffer/config.h
index d6dc5af6afcf61b40b9e5eb3161238a07158bad6..e63463b08ef45b8fd6540681f636630ef6763db5 100644
(file)
--- a/
include/ringbuffer/config.h
+++ b/
include/ringbuffer/config.h
@@
-41,10
+41,11
@@
struct lttng_kernel_ring_buffer_client_cb {
/* Slow path only, at subbuffer switch */
size_t (*subbuffer_header_size) (void);
/* Slow path only, at subbuffer switch */
size_t (*subbuffer_header_size) (void);
- void (*buffer_begin) (struct lttng_kernel_ring_buffer *buf, u64 t
sc
,
+ void (*buffer_begin) (struct lttng_kernel_ring_buffer *buf, u64 t
imestamp
,
unsigned int subbuf_idx);
unsigned int subbuf_idx);
- void (*buffer_end) (struct lttng_kernel_ring_buffer *buf, u64 tsc,
- unsigned int subbuf_idx, unsigned long data_size);
+ void (*buffer_end) (struct lttng_kernel_ring_buffer *buf, u64 timestamp,
+ 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) */
@@
-150,10
+151,10
@@
struct lttng_kernel_ring_buffer_config {
*/
} wakeup;
/*
*/
} wakeup;
/*
- * t
sc
_bits: timestamp bits saved at each record.
+ * t
imestamp
_bits: timestamp bits saved at each record.
* 0 and 64 disable the timestamp compression scheme.
*/
* 0 and 64 disable the timestamp compression scheme.
*/
- unsigned int t
sc
_bits;
+ unsigned int t
imestamp
_bits;
struct lttng_kernel_ring_buffer_client_cb cb;
};
struct lttng_kernel_ring_buffer_client_cb cb;
};
@@
-181,14
+182,22
@@
struct lttng_kernel_ring_buffer_ctx_private {
* prior to record header alignment
* padding.
*/
* prior to record header alignment
* padding.
*/
- u64 t
sc;
/* time-stamp counter value */
+ u64 t
imestamp;
/* time-stamp counter value */
unsigned int rflags; /* reservation flags */
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;
};
/*
};
/*
@@
-235,18
+244,18
@@
void lib_ring_buffer_ctx_init(struct lttng_kernel_ring_buffer_ctx *ctx,
/*
* Reservation flags.
*
/*
* Reservation flags.
*
- * RING_BUFFER_RFLAG_FULL_T
SC
+ * RING_BUFFER_RFLAG_FULL_T
IMESTAMP
*
* This flag is passed to record_header_size() and to the primitive used to
* write the record header. It indicates that the full 64-bit time value is
* needed in the record header. If this flag is not set, the record header needs
*
* This flag is passed to record_header_size() and to the primitive used to
* write the record header. It indicates that the full 64-bit time value is
* needed in the record header. If this flag is not set, the record header needs
- * only to contain "t
sc
_bits" bit of time value.
+ * only to contain "t
imestamp
_bits" bit of time value.
*
* Reservation flags can be added by the client, starting from
* "(RING_BUFFER_FLAGS_END << 0)". It can be used to pass information from
* record_header_size() to lib_ring_buffer_write_record_header().
*/
*
* Reservation flags can be added by the client, starting from
* "(RING_BUFFER_FLAGS_END << 0)". It can be used to pass information from
* record_header_size() to lib_ring_buffer_write_record_header().
*/
-#define RING_BUFFER_RFLAG_FULL_T
SC
(1U << 0)
+#define RING_BUFFER_RFLAG_FULL_T
IMESTAMP
(1U << 0)
#define RING_BUFFER_RFLAG_END (1U << 1)
#ifndef LTTNG_TRACER_CORE_H
#define RING_BUFFER_RFLAG_END (1U << 1)
#ifndef LTTNG_TRACER_CORE_H
This page took
0.033801 seconds
and
4
git commands to generate.