projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Require C++11 for building probe providers with C++ compiler
[lttng-ust.git]
/
libringbuffer
/
frontend.h
diff --git
a/libringbuffer/frontend.h
b/libringbuffer/frontend.h
index 160fd45532f39573b09178f6924bba71b1f65264..838f88e8eecf50d836dafb52b833e3aa103c65b4 100644
(file)
--- a/
libringbuffer/frontend.h
+++ b/
libringbuffer/frontend.h
@@
-28,6
+28,8
@@
*
* See ring_buffer_frontend.c for more information on wait-free algorithms.
*/
*
* See ring_buffer_frontend.c for more information on wait-free algorithms.
*/
+#include <stddef.h>
+#include <stdint.h>
#include <urcu/compiler.h>
#include <urcu/uatomic.h>
#include <urcu/compiler.h>
#include <urcu/uatomic.h>
@@
-65,7
+67,8
@@
struct lttng_ust_shm_handle *channel_create(const struct lttng_ust_lib_ring_buff
size_t subbuf_size, size_t num_subbuf,
unsigned int switch_timer_interval,
unsigned int read_timer_interval,
size_t subbuf_size, size_t num_subbuf,
unsigned int switch_timer_interval,
unsigned int read_timer_interval,
- const int *stream_fds, int nr_stream_fds);
+ const int *stream_fds, int nr_stream_fds,
+ int64_t blocking_timeout);
/*
* channel_destroy finalizes all channel's buffers, waits for readers to
/*
* channel_destroy finalizes all channel's buffers, waits for readers to
@@
-131,6
+134,11
@@
extern int lib_ring_buffer_snapshot(struct lttng_ust_lib_ring_buffer *buf,
unsigned long *consumed,
unsigned long *produced,
struct lttng_ust_shm_handle *handle);
unsigned long *consumed,
unsigned long *produced,
struct lttng_ust_shm_handle *handle);
+extern int lib_ring_buffer_snapshot_sample_positions(
+ struct lttng_ust_lib_ring_buffer *buf,
+ unsigned long *consumed,
+ unsigned long *produced,
+ struct lttng_ust_shm_handle *handle);
extern void lib_ring_buffer_move_consumer(struct lttng_ust_lib_ring_buffer *buf,
unsigned long consumed_new,
struct lttng_ust_shm_handle *handle);
extern void lib_ring_buffer_move_consumer(struct lttng_ust_lib_ring_buffer *buf,
unsigned long consumed_new,
struct lttng_ust_shm_handle *handle);
This page took
0.024748 seconds
and
4
git commands to generate.