Cleanup subdir for CONSUMER_DST_NET
authorJulien Desfossez <jdesfossez@efficios.com>
Mon, 28 Aug 2017 19:36:49 +0000 (15:36 -0400)
committerJulien Desfossez <jdesfossez@efficios.com>
Wed, 30 Aug 2017 19:29:02 +0000 (15:29 -0400)
commitf64bcfa4ab70ea1fe503722c5294c44d43aa0017
treea633a99d9ab1063c8787bd6234986500f29058d5
parent04350e9439910c9baa132a4fe994605b03aa75db
Cleanup subdir for CONSUMER_DST_NET

The subdir in the consumer_output structure is supposed to be the
domain-specific sub-directory (/kernel or /ust), but currently we
prepend <hostname>/<session-name> to this subdir for sessions that use a
relay.

Here, we introduce the dst.net.base_dir to store the
<hostname>/<session-name> in the consumer_output and keep subdir
only for the domain-specific data.

This is useful for session rotation where we need to insert the
chunk-name between the session-name and the domain-specific folder.

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
src/bin/lttng-sessiond/consumer.c
src/bin/lttng-sessiond/consumer.h
src/bin/lttng-sessiond/kernel-consumer.c
src/bin/lttng-sessiond/ust-consumer.c
This page took 0.029412 seconds and 5 git commands to generate.