Prevent re-entrancy in callstack-user context
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Mon, 29 May 2017 19:32:04 +0000 (15:32 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 11 Jun 2018 18:39:17 +0000 (14:39 -0400)
commita2b0231a9ae996cc69e48d75c338ad7d081a0f85
tree09c0dd2ceeeb55c0e16e922e49ecfefb72ebb467
parent3685cc8094c0fdf561f1ef6379f0e451d14d149e
Prevent re-entrancy in callstack-user context

Userspace callstack context often triggers kernel pagefaults that can be
traced by the kernel tracer which might then attempt to gather the
userspace callstack again... This recursion will be stop by the
RING_BUFFER_MAX_NESTING check but will still pollute the traces with
redundant information.

To prevent this, check if the tracer is already gathering the userspace
callstack and if it's the case don't record it again.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-context-callstack.c
This page took 0.026276 seconds and 4 git commands to generate.