projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
doc: remove duplicate LTTNG_UST_BLOCKING_RETRY_TIMEOUT man page entry
[lttng-ust.git]
/
liblttng-ust
/
lttng-ring-buffer-client.h
diff --git
a/liblttng-ust/lttng-ring-buffer-client.h
b/liblttng-ust/lttng-ring-buffer-client.h
index e5640b2ea0e4e7096e8729e975f75141b0892692..6ed067105d8e7fd0f8a280e3f09caa0375186836 100644
(file)
--- a/
liblttng-ust/lttng-ring-buffer-client.h
+++ b/
liblttng-ust/lttng-ring-buffer-client.h
@@
-715,8
+715,16
@@
int lttng_event_reserve(struct lttng_ust_lib_ring_buffer_ctx *ctx,
}
ret = lib_ring_buffer_reserve(&client_config, ctx);
}
ret = lib_ring_buffer_reserve(&client_config, ctx);
- if (
ret
)
+ if (
caa_unlikely(ret)
)
goto put;
goto put;
+ if (caa_likely(ctx->ctx_len
+ >= sizeof(struct lttng_ust_lib_ring_buffer_ctx))) {
+ if (lib_ring_buffer_backend_get_pages(&client_config, ctx,
+ &ctx->backend_pages)) {
+ ret = -EPERM;
+ goto put;
+ }
+ }
lttng_write_event_header(&client_config, ctx, event_id);
return 0;
put:
lttng_write_event_header(&client_config, ctx, event_id);
return 0;
put:
This page took
0.023867 seconds
and
4
git commands to generate.