projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: out of memory error handling
[lttng-modules.git]
/
lib
/
ringbuffer
/
frontend.h
diff --git
a/lib/ringbuffer/frontend.h
b/lib/ringbuffer/frontend.h
index 6ff154528dd6e2b0d2c39e388a64193c0da7b135..1450cb7faf415d7e73f53b07101b534382474b53 100644
(file)
--- a/
lib/ringbuffer/frontend.h
+++ b/
lib/ringbuffer/frontend.h
@@
-106,6
+106,10
@@
extern void lib_ring_buffer_release_read(struct lib_ring_buffer *buf);
extern int lib_ring_buffer_snapshot(struct lib_ring_buffer *buf,
unsigned long *consumed,
unsigned long *produced);
extern int lib_ring_buffer_snapshot(struct lib_ring_buffer *buf,
unsigned long *consumed,
unsigned long *produced);
+extern int lib_ring_buffer_snapshot_sample_positions(
+ struct lib_ring_buffer *buf,
+ unsigned long *consumed,
+ unsigned long *produced);
extern void lib_ring_buffer_move_consumer(struct lib_ring_buffer *buf,
unsigned long consumed_new);
extern void lib_ring_buffer_move_consumer(struct lib_ring_buffer *buf,
unsigned long consumed_new);
@@
-164,7
+168,7
@@
static inline
int lib_ring_buffer_is_finalized(const struct lib_ring_buffer_config *config,
struct lib_ring_buffer *buf)
{
int lib_ring_buffer_is_finalized(const struct lib_ring_buffer_config *config,
struct lib_ring_buffer *buf)
{
- int finalized =
ACCESS
_ONCE(buf->finalized);
+ int finalized =
READ
_ONCE(buf->finalized);
/*
* Read finalized before counters.
*/
/*
* Read finalized before counters.
*/
This page took
0.022878 seconds
and
4
git commands to generate.