Fix: no-output sessions do not enforce snapshot constraints
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 27 Mar 2019 22:36:15 +0000 (18:36 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 28 Mar 2019 19:52:47 +0000 (15:52 -0400)
commit54213acc35b30fa5e95dd275c31cfb584d4e4abf
tree228bbc4b89ca953eff9c9c1bbe796433e826222c
parent0ed78e50c92e986d1c766a76ba5c3bca6125a989
Fix: no-output sessions do not enforce snapshot constraints

A number of scenarios can lead to failures to record snapshots when a
session is created as "no-output" (not snapshot) and has snapshot
outputs added later-on.

These changes prevent a user from adding snapshot outputs after the
creation of a kernel channel that makes use of the 'splice' output
type since those do not allow the capture of snapshots.

Moreover, the output type of kernel channels is overriden when a
snapshot output is present in a session to behave like a snapshot
session would.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
include/lttng/lttng-error.h
src/bin/lttng-sessiond/channel.c
src/bin/lttng-sessiond/cmd.c
src/bin/lttng-sessiond/session.h
src/bin/lttng/commands/snapshot.c
src/common/error.c
This page took 0.027439 seconds and 4 git commands to generate.