Fix: sessiond: only send streams to consumer once
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 11 Jan 2017 20:49:48 +0000 (15:49 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 23 Jan 2017 22:29:01 +0000 (17:29 -0500)
commit6986ab9b81183b7759e78eb60adaaa8188b8899b
tree25c115b4587f0a4de57ad42687ed236d5d14b143
parentfe19a07a543415355ad6ab04e6fe72f167a48262
Fix: sessiond: only send streams to consumer once

Session daemon should not send streams to consumer daemon
repeatedly when CPU hotplug is performed while doing kernel
tracing.

This causes the consumer daemon to have multiple file descriptors
on the same stream, and thus try to perform operations like reading
a sub-buffer and checking for data pending concurrently. This triggers
safety-net warnings in the kernel tracer.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/kernel-consumer.c
src/bin/lttng-sessiond/trace-kernel.h
This page took 0.026322 seconds and 4 git commands to generate.