Project

General

Profile

Actions

Feature #984

open

Session path in LTTng profiles should not contain date and time

Added by Bernd Hufmann almost 9 years ago. Updated almost 9 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
Start date:
12/08/2015
Due date:
% Done:

0%

Estimated time:

Description

Saving a session with command "lttng save" will store the whole current session path of the active session(s) the path attribute. This includes date and time of the session when the session was created. When loading that session profile later on with "lttng load -i <profile file>" and new session is created with the same session output path.

When starting tracing after the load command it will (I think) overwrite the trace that was already stored at the session output location.

I think the date and time should be calculated at every time when the load command is executed like it is done for the create command, unless the session was created originally with the -o command-line parameter (lttng create testSession -o <my path>).

I'm running on LTTng 2.7, but I assume the behaviour is same with previous versions.

See below the sequence of commands I executed. I also attached the profile that was stored.

lttng create testSession

Session testSession created.
Traces will be written in /home/bhufmann/lttng-traces/testSession-20151208-084033

lttng enable-event -a -k

All Kernel events are enabled in channel channel0

lttng enable-event -a -u

All UST events are enabled in channel channel0

lttng save

All sessions have been saved successfully.

lttng destroy

Session testSession destroyed

lttng load -i /home/bhufmann/.lttng/sessions/testSession.lttng

All sessions have been loaded successfully

lttng list

Available tracing sessions:
1) testSession (/home/bhufmann/lttng-traces/testSession-20151208-084033) [inactive]
Trace path: /home/bhumfann/lttng-traces/testSession-20151208-084033

Use lttng list <session_name> for more details


Files

testSession.lttng (2.38 KB) testSession.lttng Lttng profile example Bernd Hufmann, 12/08/2015 08:47 AM
Actions

Also available in: Atom PDF