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>
Fri, 29 Mar 2019 15:47:56 +0000 (11:47 -0400)
commit8954c04a5aafcb3e9796279783893db6241e5515
treea73f42018c395f9a4186a87c64c0951156efe201
parentac4c07212ead3c601918c21b21eeaace48a95593
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.026273 seconds and 4 git commands to generate.