projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: random: only read from /dev/random after its pool has received 128 bits (v5.2)
[lttng-modules.git]
/
lttng-ring-buffer-metadata-client.h
diff --git
a/lttng-ring-buffer-metadata-client.h
b/lttng-ring-buffer-metadata-client.h
index c441372e3a45245ba34191d63ef1f976bfd67ccd..b2c0c82147999d2c09042431cf65ba9313802965 100644
(file)
--- a/
lttng-ring-buffer-metadata-client.h
+++ b/
lttng-ring-buffer-metadata-client.h
@@
-312,7
+312,15
@@
void lttng_buffer_read_close(struct lib_ring_buffer *buf)
static
int lttng_event_reserve(struct lib_ring_buffer_ctx *ctx, uint32_t event_id)
{
static
int lttng_event_reserve(struct lib_ring_buffer_ctx *ctx, uint32_t event_id)
{
- return lib_ring_buffer_reserve(&client_config, ctx);
+ int ret;
+
+ ret = lib_ring_buffer_reserve(&client_config, ctx);
+ if (ret)
+ return ret;
+ lib_ring_buffer_backend_get_pages(&client_config, ctx,
+ &ctx->backend_pages);
+ return 0;
+
}
static
}
static
This page took
0.024881 seconds
and
4
git commands to generate.