8 lttng-regenerate - Regenerate specific data of an LTTng tracing session
13 Regenerate the metadata of a tracing session:
16 *lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *regenerate metadata* [option:--session='SESSION']
18 Regenerate the state dump event records of a tracing 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 tracing session named 'SESSION'.
31 Without the option:--session option::
32 The current tracing session (see man:lttng-concepts(7) to learn more
33 about the current tracing session).
35 See man:lttng-concepts(7) to learn more about tracing 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 tracing 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
51 link:https://en.wikipedia.org/wiki/Network_Time_Protocol[NTP]
52 correction. As such, LTTng can trace a system booting with an incorrect
53 wall time before its wall time is NTP-corrected. Regenerating the
54 metadata of the selected tracing session ensures that trace readers can
55 accurately determine the event record timestamps relative to the
58 Note that if you plan to rotate (see man:lttng-concepts(7) to learn
59 more) the selected tracing session, this target only regenerates the
60 metadata stream files of the current and next trace chunks.
64 You can only use the `metadata` target when the selected
67 * Is not in live mode (nloption:--live option of
70 * If it has user space channels, they're configured to use a
71 per-user buffering scheme (nloption:--buffers-uid option of
72 man:lttng-enable-channel(1)).
74 See man:lttng-concepts(7) to learn more about channels.
78 Regenerate the state dump event records of a tracing session
79 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
80 Use the `statedump` target to collect up-to-date state dump information
81 and create corresponding event records.
83 This is particularly useful if the selected tracing session is in
84 snapshot mode (nloption:--snapshot option of the man:lttng-create(1)
85 command) or if LTTng rotates trace files for one of its channels (see
86 man:lttng-concepts(7)): in both cases, the state dump information may be
90 include::common-lttng-cmd-options-head.txt[]
93 option:-s 'SESSION', option:--session='SESSION'::
94 Regenerate specific data of the tracing session named 'SESSION'
95 instead of the current tracing session.
98 include::common-lttng-cmd-help-options.txt[]
101 include::common-lttng-cmd-after-options.txt[]
107 .Regenerate the metadata of the current tracing session.
111 $ lttng regenerate metadata
115 .Regenerate the state dump event records of a specific tracing session.
117 See the option:--session option.
121 $ lttng regenerate statedump --session=my-session
126 include::common-footer.txt[]
132 man:lttng-concepts(7)