8 lttng-regenerate - Regenerate specific data of an LTTng recording session
13 Regenerate the metadata of a recording session:
16 *lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *regenerate metadata* [option:--session='SESSION']
18 Regenerate the state dump event records of a recording session:
21 *lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *regenerate statedump* [option:--session='SESSION']
26 The `lttng regenerate` command regenerates specific data of:
28 With the option:--session='SESSION' option::
29 The recording session named 'SESSION'.
31 Without the option:--session option::
32 The current recording session (see man:lttng-concepts(7) to learn
33 more about the current recording session).
35 See man:lttng-concepts(7) to learn more about recording sessions.
37 As of this version, the `metadata` and `statedump` targets are
40 See the ``<<examples,EXAMPLES>>'' section below for usage examples.
43 Regenerate the metadata of a recording session
44 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
45 Use the `metadata` target to resample the offset between the monotonic
46 clock and the wall time of the system, and then regenerate the metadata
49 More specifically, you may want to resample the wall time following a
50 major link:https://en.wikipedia.org/wiki/Network_Time_Protocol[NTP]
51 correction. As such, LTTng can trace a system booting with an incorrect
52 wall time before its wall time is NTP-corrected. Regenerating the
53 metadata of the selected recording session ensures that trace readers
54 can accurately determine the event record timestamps relative to the
57 Note that if you plan to rotate (see man:lttng-concepts(7) to learn
58 more) the selected recording session, this target only regenerates the
59 metadata stream files of the current and next trace chunks.
63 You can only use the `metadata` target when the selected
66 * Is not in live mode (nloption:--live option of
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)).
73 See man:lttng-concepts(7) to learn more about channels.
77 Regenerate the state dump event records of a recording session
78 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
79 Use the `statedump` target to collect up-to-date state dump information
80 and create corresponding event records.
82 This is particularly useful if the selected recording session is in
83 snapshot mode (nloption:--snapshot option of the man:lttng-create(1)
84 command) or if LTTng rotates trace files for one of its channels (see
85 man:lttng-concepts(7)): in both cases, the state dump information may be
89 include::common-lttng-cmd-options-head.txt[]
92 option:-s 'SESSION', option:--session='SESSION'::
93 Regenerate specific data of the recording session named 'SESSION'
94 instead of the current recording session.
97 include::common-lttng-cmd-help-options.txt[]
100 include::common-lttng-cmd-after-options.txt[]
106 .Regenerate the metadata of the current recording session.
110 $ lttng regenerate metadata
114 .Regenerate the state dump event records of a specific recording session.
116 See the option:--session option.
120 $ lttng regenerate statedump --session=my-session
125 include::common-footer.txt[]
131 man:lttng-concepts(7)