https://bugs.lttng.org/https://bugs.lttng.org/themes/lttng/favicon/a.ico?14249722912017-05-26T22:29:18ZLTTng bugs repositoryLTTng-modules - Bug #1113: Ringbuffer looping when kernel pagefault event and userspace callstack context enabledhttps://bugs.lttng.org/issues/1113?journal_id=32272017-05-26T22:29:18ZFrancis Deslauriersfrancis.deslauriers@efficios.com
<ul><li><strong>Assignee</strong> set to <i>Francis Deslauriers</i></li></ul> LTTng-modules - Bug #1113: Ringbuffer looping when kernel pagefault event and userspace callstack context enabledhttps://bugs.lttng.org/issues/1113?journal_id=32452017-07-21T15:59:15ZMathieu Desnoyersmathieu.desnoyers@efficios.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li></ul><p>Fixed by commit:</p>
<pre>
commit cc62f29ec5d5149ae6dba1a9acb538e06da07a94
Author: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Date: Sat May 27 13:28:03 2017 +0200
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>
</pre>