]> git.lttng.org Git - lttng-ust.git/commit
Cleanup: lib_ring_buffer_switch_new_end() only calls subbuffer_set_data_size()
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 1 Jul 2013 17:18:54 +0000 (13:18 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 1 Jul 2013 17:18:54 +0000 (13:18 -0400)
commit3962118d1f08fd33ad6adfad10452962c3662bd9
treef93e7171cec01fa5fd8f70c97772c5bb9bd731a9
parent4855a9659a879194ee23831381c6d2d10fa031a0
Cleanup: lib_ring_buffer_switch_new_end() only calls subbuffer_set_data_size()

lib_ring_buffer_switch_new_end() is always called when an event exactly
fills a sub-buffer, which makes padding_size always 0. However, there is
one side-effect that lib_ring_buffer_switch_new_end() needs to have: it
calls subbuffer_set_data_size() to update the size of the data to be
read from the sub-buffer.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
libringbuffer/ring_buffer_frontend.c
This page took 0.028071 seconds and 4 git commands to generate.