Rename "tracing session" -> "recording session"
[lttng-tools.git] / doc / man / lttng-regenerate.1.txt
CommitLineData
eded6438 1lttng-regenerate(1)
4605890e 2===================
aaae4813 3:revdate: 14 June 2021
eded6438
JD
4
5
6NAME
7----
aaae4813 8lttng-regenerate - Regenerate specific data of an LTTng recording session
eded6438
JD
9
10
11SYNOPSIS
12--------
aaae4813 13Regenerate the metadata of a recording session:
eded6438
JD
14
15[verse]
16*lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *regenerate metadata* [option:--session='SESSION']
17
aaae4813 18Regenerate the state dump event records of a recording session:
dbcf3dd3
JD
19
20[verse]
21*lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *regenerate statedump* [option:--session='SESSION']
22
188419c4 23
eded6438
JD
24DESCRIPTION
25-----------
188419c4 26The `lttng regenerate` command regenerates specific data of:
dbcf3dd3 27
188419c4 28With the option:--session='SESSION' option::
aaae4813 29 The recording session named 'SESSION'.
dbcf3dd3 30
188419c4 31Without the option:--session option::
aaae4813
PP
32 The current recording session (see man:lttng-concepts(7) to learn
33 more about the current recording session).
dbcf3dd3 34
aaae4813 35See man:lttng-concepts(7) to learn more about recording sessions.
eded6438 36
188419c4
PP
37As of this version, the `metadata` and `statedump` targets are
38available.
980bb5fd 39
7d259724 40See the ``<<examples,EXAMPLES>>'' section below for usage examples.
8200fee7 41
eded6438 42
aaae4813
PP
43Regenerate the metadata of a recording session
44~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
188419c4
PP
45Use the `metadata` target to resample the offset between the monotonic
46clock and the wall time of the system, and then regenerate the metadata
47stream files.
48
aaae4813
PP
49More specifically, you may want to resample the wall time following a
50major link:https://en.wikipedia.org/wiki/Network_Time_Protocol[NTP]
188419c4
PP
51correction. As such, LTTng can trace a system booting with an incorrect
52wall time before its wall time is NTP-corrected. Regenerating the
aaae4813
PP
53metadata of the selected recording session ensures that trace readers
54can accurately determine the event record timestamps relative to the
188419c4
PP
55Unix epoch.
56
57Note that if you plan to rotate (see man:lttng-concepts(7) to learn
aaae4813 58more) the selected recording session, this target only regenerates the
188419c4
PP
59metadata stream files of the current and next trace chunks.
60
61[IMPORTANT]
62====
63You can only use the `metadata` target when the selected
aaae4813 64recording session:
188419c4
PP
65
66* Is not in live mode (nloption:--live option of
67 man:lttng-create(1)).
68
69* If it has user space channels, they're configured to use a
70 per-user buffering scheme (nloption:--buffers-uid option of
71 man:lttng-enable-channel(1)).
72+
73See man:lttng-concepts(7) to learn more about channels.
74====
75
76
aaae4813
PP
77Regenerate the state dump event records of a recording session
78~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
188419c4
PP
79Use the `statedump` target to collect up-to-date state dump information
80and create corresponding event records.
81
aaae4813 82This is particularly useful if the selected recording session is in
188419c4
PP
83snapshot mode (nloption:--snapshot option of the man:lttng-create(1)
84command) or if LTTng rotates trace files for one of its channels (see
85man:lttng-concepts(7)): in both cases, the state dump information may be
dbcf3dd3 86lost.
eded6438
JD
87
88
55e06994 89include::common-lttng-cmd-options-head.txt[]
eded6438
JD
90
91
59b19c3c 92option:-s 'SESSION', option:--session='SESSION'::
aaae4813
PP
93 Regenerate specific data of the recording session named 'SESSION'
94 instead of the current recording session.
eded6438
JD
95
96
55e06994 97include::common-lttng-cmd-help-options.txt[]
eded6438
JD
98
99
55e06994
PP
100include::common-lttng-cmd-after-options.txt[]
101
102
8200fee7
PP
103[[examples]]
104EXAMPLES
105--------
aaae4813 106.Regenerate the metadata of the current recording session.
8200fee7
PP
107====
108[role="term"]
109----
110$ lttng regenerate metadata
111----
112====
113
aaae4813 114.Regenerate the state dump event records of a specific recording session.
8200fee7
PP
115====
116See the option:--session option.
117
118[role="term"]
119----
120$ lttng regenerate statedump --session=my-session
121----
122====
123
124
55e06994 125include::common-footer.txt[]
eded6438
JD
126
127
128SEE ALSO
129--------
188419c4
PP
130man:lttng(1),
131man:lttng-concepts(7)
This page took 0.050938 seconds and 5 git commands to generate.