Calculate context length outside of retry loop
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 27 May 2017 11:28:03 +0000 (13:28 +0200)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 27 May 2017 13:23:40 +0000 (15:23 +0200)
commitcc62f29ec5d5149ae6dba1a9acb538e06da07a94
tree2bd33ce7bddcfe5542ba78d12c6a65e84494876f
parent262ab18947d8568ef6357d5bfd84d11537cb4b9f
Calculate context length outside of retry loop

Allow context length calculation to have side-effects (e.g. page faults)
which trigger event tracing by moving the calculation outside of the
buffer space reservation retry loop.

This also paves the way to have dynamically sized contexts, which
would expect to put their size of the internal stack. Note that the
context length calculation is performed *after* the event payload field
length calculation, so the stack needs to be used accordingly.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lib/ringbuffer/config.h
lib/ringbuffer/frontend_api.h
lib/ringbuffer/frontend_internal.h
lib/ringbuffer/ring_buffer_frontend.c
lttng-ring-buffer-client.h
lttng-ring-buffer-metadata-client.h
This page took 0.025368 seconds and 4 git commands to generate.