Calculate context length outside of retry loop
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 27 May 2017 13:14:41 +0000 (15:14 +0200)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 27 May 2017 13:23:30 +0000 (15:23 +0200)
commite56bb47c3af00db3bc9e2dea711bef4882e6ef4c
tree5d8062eb9ed579050d3ef7a2cc3c02283bbb6309
parentdd77bd5b20e95fefa8d857fdd3b7c9bdbbf24bc7
Calculate context length outside of retry loop

Allow context length calculation to have side-effects 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 in lttng-ust,
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.

Currently, the only dynamically sized contexts we have are provided by
Java integration, which keeps its own stack.

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