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.h
diff --git
a/src/common/ringbuffer/frontend.h
b/src/common/ringbuffer/frontend.h
index 8867418081300457fcc88e7bd4cd2cbb47c6dfb4..9850d71058b7b64681e1b5c0713dd1c187856c88 100644
(file)
--- a/
src/common/ringbuffer/frontend.h
+++ b/
src/common/ringbuffer/frontend.h
@@
-81,7
+81,8
@@
extern struct lttng_ust_ring_buffer *channel_get_ring_buffer(
struct lttng_ust_shm_handle *handle,
int *shm_fd, int *wait_fd,
int *wakeup_fd,
struct lttng_ust_shm_handle *handle,
int *shm_fd, int *wait_fd,
int *wakeup_fd,
- uint64_t *memory_map_size)
+ uint64_t *memory_map_size,
+ void **memory_map_addr)
__attribute__((visibility("hidden")));
extern
__attribute__((visibility("hidden")));
extern
@@
-264,26
+265,26
@@
unsigned long lib_ring_buffer_get_records_overrun(
static inline
unsigned long lib_ring_buffer_get_records_lost_full(
static inline
unsigned long lib_ring_buffer_get_records_lost_full(
- const struct lttng_ust_ring_buffer_config *config,
-
struct lttng_ust_ring_buffer *buf
)
+ const struct lttng_ust_ring_buffer_config *config
__attribute__((unused))
,
+
const struct lttng_ust_ring_buffer_ctx *ctx
)
{
{
- return
v_read(config, &buf->records_lost_full)
;
+ return
ctx->priv->records_lost_full
;
}
static inline
unsigned long lib_ring_buffer_get_records_lost_wrap(
}
static inline
unsigned long lib_ring_buffer_get_records_lost_wrap(
- const struct lttng_ust_ring_buffer_config *config,
-
struct lttng_ust_ring_buffer *buf
)
+ const struct lttng_ust_ring_buffer_config *config
__attribute__((unused))
,
+
const struct lttng_ust_ring_buffer_ctx *ctx
)
{
{
- return
v_read(config, &buf->records_lost_wrap)
;
+ return
ctx->priv->records_lost_wrap
;
}
static inline
unsigned long lib_ring_buffer_get_records_lost_big(
}
static inline
unsigned long lib_ring_buffer_get_records_lost_big(
- const struct lttng_ust_ring_buffer_config *config,
-
struct lttng_ust_ring_buffer *buf
)
+ const struct lttng_ust_ring_buffer_config *config
__attribute__((unused))
,
+
const struct lttng_ust_ring_buffer_ctx *ctx
)
{
{
- return
v_read(config, &buf->records_lost_big)
;
+ return
ctx->priv->records_lost_big
;
}
static inline
}
static inline
This page took
0.042795 seconds
and
4
git commands to generate.