Move to kernel style SPDX license identifiers
[babeltrace.git] / doc / man / babeltrace2-convert.1.txt
... / ...
CommitLineData
1= babeltrace2-convert(1)
2:manpagetype: command
3:revdate: 14 September 2019
4
5
6== NAME
7
8babeltrace2-convert - Convert one or more traces to a given format
9
10
11== SYNOPSIS
12
13Pretty-print (plain text) the events, in order, of one or more traces:
14
15[verse]
16*babeltrace2* [<<gen-opts,'GENERAL OPTIONS'>>] [*convert*] [opt:--retry-duration='TIME-US']
17 'TRACE-PATH'...
18
19Convert one or more traces to a given format:
20
21[verse]
22*babeltrace2* [<<gen-opts,'GENERAL OPTIONS'>>] [*convert*] [opt:--retry-duration='TIME-US']
23 'CONVERSION ARGS'
24
25Get the equivalent man:babeltrace2-run(1) command arguments to convert
26one or more traces to a given format:
27
28[verse]
29*babeltrace2* [<<gen-opts,'GENERAL OPTIONS'>>] [*convert*] [opt:--retry-duration='TIME-US']
30 (opt:--run-args | opt:--run-args-0) 'CONVERSION ARGS'
31
32Print the metadata text of a CTF trace:
33
34[verse]
35*babeltrace2* [<<gen-opts,'GENERAL OPTIONS'>>] [*convert*] [opt:--output='OUTPATH']
36 opt:--output-format=`ctf-metadata` 'TRACE-PATH'
37
38Print the available https://lttng.org/docs/#doc-lttng-live[remote LTTng
39tracing sessions]:
40
41[verse]
42*babeltrace2* [<<gen-opts,'GENERAL OPTIONS'>>] [*convert*] [opt:--output='OUTPATH']
43 opt:--input-format=`lttng-live` 'URL'
44
45
46== DESCRIPTION
47
48The `convert` command converts one or more traces to a given format,
49possibly with filters in the conversion path.
50
51include::common-see-babeltrace2-intro.txt[]
52
53[NOTE]
54====
55`convert` is the default man:babeltrace2(1) command: you generally don't
56need to specify its name. The following commands are equivalent if the
57`...` part does not start with another man:babeltrace2(1) command's
58name, like `run` or `list-plugins`:
59
60[role="term"]
61----
62$ babeltrace2 convert ...
63$ babeltrace2 ...
64----
65
66If you need to make sure that you are executing the `convert` command,
67use `babeltrace2 convert` explicitly.
68====
69
70More specifically, the `convert` command creates a conversion graph.
71
72A conversion graph is a specialized trace processing graph focused on
73the conversion of one or more traces to another format, possibly
74filtering or modifying their events and other messages in the process. A
75conversion graph is a linear chain of components once the source streams
76are merged:
77
78----
79+----------+
80| source 1 @-.
81+----------+ |
82 | +-------+
83+----------+ '->@ | +---------+ +------------+
84| source 2 @--->@ muxer @--->@ trimmer @--->@ debug-info @-.
85+----------+ .->@ | +---------+ +------------+ |
86 | +-------+ |
87+----------+ | .----------------------------------------'
88| ... @-' | +---------------+ +------+
89+----------+ '->@ other filters |--->@ sink |
90 +---------------+ +------+
91----
92
93Note that the trimmer, debugging information, and other filters are
94optional. See <<comp-create-impl-opt,``Create implicit components from
95options''>> to learn how to enable them.
96
97If you need another trace processing graph layout, use the more flexible
98man:babeltrace2-run(1) command.
99
100Like with the man:babeltrace2-run(1) command, you can create components
101explicitly with the opt:--component option (see
102<<comp-create-expl,``Create explicit components''>>). You can also use
103one of the many specific `convert` command options (see
104<<comp-create-impl-opt,``Create implicit components from options''>>)
105and non-option arguments (see <<comp-create-impl-non-opt,``Create
106implicit components from non-option arguments''>>) to create implicit
107components.
108
109An _implicit component_ is a component which is created and added to the
110conversion graph without an explicit instantiation through the
111opt:--component option. An implicit component is easier to create than
112an explicit component: this is why the `convert` command exists, as you
113can also create and run a conversion graph with the generic
114man:babeltrace2-run(1) command.
115
116For example, you can specify one or more CTF trace path as non-option
117arguments to pretty-print the merged events to the standard output:
118
119[role="term"]
120----
121$ babeltrace2 /path/to/trace /path/to/other/trace
122----
123
124This is the equivalent of creating and connecting together:
125
126* One compcls:source.ctf.fs components with its
127 manparam:source.ctf.fs:inputs initialization parameter set to
128 `/path/to/trace`.
129
130* One compcls:source.ctf.fs components with its
131 manparam:source.ctf.fs:inputs initialization parameter set to
132 `/path/to/other/trace`.
133
134* A compcls:filter.utils.muxer component.
135
136* A compcls:sink.text.pretty component.
137
138This creates the following conversion graph:
139
140----
141+------------+ +-----------------+ +------------------+
142| src.ctf.fs | | flt.utils.muxer | | sink.text.pretty |
143| [ctf-fs] | | [muxer] | | [pretty] |
144| | | | | |
145| stream0 @--->@ in0 out @--->@ in |
146| stream1 @--->@ in1 | +------------------+
147| stream2 @--->@ in2 |
148| stream3 @--->@ in3 |
149+------------+ | |
150 | |
151+------------+ | |
152| src.ctf.fs | | |
153| [ctf-fs-2] | | |
154| | | |
155| stream0 @--->@ in4 |
156| stream1 @--->@ in5 |
157+------------+ @ in6 |
158 +-----------------+
159----
160
161It is equivalent to the following man:babeltrace2-run(1) command line:
162
163[role="term"]
164----
165$ babeltrace2 run --component=ctf-fs:src.ctf.fs \
166 --params='inputs=["/path/to/trace"] \
167 --component=ctf-fs-2:src.ctf.fs \
168 --params='inputs=["/path/to/other/trace"] \
169 --component=muxer:filter.utils.muxer \
170 --component=pretty:sink.text.pretty \
171 --connect=ctf*:muxer --connect=muxer:pretty
172----
173
174You can use the opt:--run-args option to make the `convert` command
175print its equivalent `run` command arguments instead of creating and
176running the conversion graph. The printed arguments are escaped for
177shells, which means you can use them as is on the command line and
178possibly add more options to the `run` command:
179
180[role="term"]
181----
182$ babeltrace2 run $(babeltrace2 --run-args /path/to/trace) ...
183----
184
185The opt:--run-args-0 option is like the opt:--run-args option, but the
186printed arguments are :not: escaped and they are separated by a null
187character instead of a space. This is useful if the resulting arguments
188are not the direct input of a shell, for example if passed to
189`xargs -0`.
190
191See <<examples,``EXAMPLES''>> for usage examples.
192
193
194[[comp-create-expl]]
195=== Create explicit components
196
197To explicitly create a component, use the opt:--component option. This
198option specifies:
199
200* **Optional**: The name of the component.
201
202* The type of the component class to instantiate: source, filter, or
203 sink.
204
205* The name of the plugin in which to find the component class to
206 instantiate.
207
208* The name of the component class to instantiate.
209
210You can use the opt:--component option multiple times to create
211multiple components. You can instantiate the same component class
212multiple times as different component instances.
213
214Immediately following a opt:--component option on the command line, the
215created component is known as the _current component_ (until the next
216opt:--component option or non-option argument).
217
218The following command-line options apply to the current component:
219
220opt:--log-level='LVL'::
221 Set the log level of the current component to 'LVL'.
222
223opt:--params='PARAMS'::
224 Add 'PARAMS' to the initialization parameters of the current
225 component.
226+
227If 'PARAMS' contains a key which exists in the current component's
228initialization parameters, replace the parameter.
229
230See <<examples,``EXAMPLES''>> for usage examples.
231
232
233[[comp-create-impl-non-opt]]
234=== Create implicit components from non-option arguments
235
236When you specify a non-option argument to the `convert` command, it
237tries to find one or more components which can handle this argument.
238
239For example, with this command line:
240
241[role="term"]
242----
243$ babeltrace2 /path/to/trace
244----
245
246If `/path/to/trace` is a CTF trace directory, then the `convert` command
247creates a compcls:source.ctf.fs component to handle this specific trace.
248
249This automatic source component discovery mechanism is possible thanks
250to component classes which support the `babeltrace.support-info` query
251object (see man:babeltrace2-query-babeltrace.support-info(7)).
252
253The non-option argument can be a directory. If no component can handle
254that specific directory, then the `convert` command traverses that
255directory and recursively tries to find compatible components for each
256file and subdirectory. This means that a single non-option argument can
257lead to the creation of many implicit components.
258
259The following command-line options apply to :all: the implicit
260components created from the last non-option argument:
261
262opt:--log-level='LVL'::
263 Set the log level of those implicit components to 'LVL'.
264
265opt:--params='PARAMS'::
266 Add 'PARAMS' to the initialization parameters of those implicit
267 components.
268+
269For a given implicit component, if 'PARAMS' contains a key which exists
270in this component's initialization parameters, replace the parameter.
271
272Note that it's also possible for two non-option arguments to cause the
273creation of a single implicit component. For example, if you specify:
274
275[role="term"]
276----
277$ babeltrace2 /path/to/chunk1 /path/to/chunk2
278----
279
280where `/path/to/chunk1` and `/path/to/chunk2` are paths to chunks of the
281same logical CTF trace, then the `convert` command creates a single
282compcls:source.ctf.fs component which receives both paths at
283initialization time. When this happens, any opt:--log-level or
284opt:--params option that you specify to one of them applies to the
285single implicit component. For example:
286
287[role="term"]
288----
289$ babeltrace2 /path/to/chunk1 --params=clock-class-offset-s=450 \
290 /path/to/chunk2 --params=clock-class-offset-ns=98 \
291 --log-level=INFO
292----
293
294Here, the single implicit component gets both `clock-class-offset-s` and
295`clock-class-offset-ns` initialization parameters, as well as the INFO
296log level.
297
298For backward compatibility with the man:babeltrace(1) program, the
299`convert` command ignores any non-option argument which does not cause
300the creation of any component. In that case, it emits a warning log
301statement and continues.
302
303
304[[comp-create-impl-opt]]
305=== Create implicit components from options
306
307There are many ways to create implicit components from options with the
308`convert` command:
309
310* To create an implicit compcls:filter.utils.trimmer component (stream
311 trimmer), specify the opt:--begin, opt:--end, or opt:--timerange
312 option.
313+
314Examples:
315+
316[role="term"]
317----
318$ babeltrace2 /path/to/trace --begin=22:14:38 --end=22:15:07
319----
320+
321[role="term"]
322----
323$ babeltrace2 /path/to/trace --timerange=22:14:38,22:15:07
324----
325+
326[role="term"]
327----
328$ babeltrace2 /path/to/trace --end=12:31:04.882928015
329----
330
331* To create an implicit compcls:filter.lttng-utils.debug-info (add
332 debugging information to compatible LTTng events), specify any of the
333 opt:--debug-info, opt:--debug-info-dir, opt:--debug-info-full-path, or
334 opt:--debug-info-target-prefix options.
335+
336Examples:
337+
338[role="term"]
339----
340$ babeltrace2 /path/to/trace --debug-info
341----
342+
343[role="term"]
344----
345$ babeltrace2 /path/to/trace \
346 --debug-info-target-prefix=/tmp/tgt-root
347----
348+
349[role="term"]
350----
351$ babeltrace2 /path/to/trace --debug-info-full-path
352----
353
354* To create an implicit compcls:sink.text.pretty component
355 (pretty-printing text output to the standard output or to a file),
356 specify no other sink components, explicit or implicit.
357+
358The implicit compcls:sink.text.pretty component exists by default. If
359any other explicit or implicit sink component exists, the `convert`
360command does not automatically create the implicit
361compcls:sink.text.pretty component.
362+
363The opt:--clock-cycles, opt:--clock-date, opt:--clock-gmt,
364opt:--clock-seconds, opt:--color, opt:--fields, opt:--names, and
365opt:--no-delta options all apply to the implicit
366compcls:sink.text.pretty component.
367+
368The opt:--output option without opt:--output-format=`ctf` makes the
369implicit compcls:sink.text.pretty component write its content to a file,
370except the warnings for backward compatibility with the
371man:babeltrace(1) program.
372+
373Examples:
374+
375[role="term"]
376----
377$ babeltrace2 /path/to/trace
378----
379+
380[role="term"]
381----
382$ babeltrace2 /path/to/trace --no-delta
383----
384+
385[role="term"]
386----
387$ babeltrace2 /path/to/trace --output=/tmp/pretty-out
388----
389
390* To create an implicit compcls:sink.utils.dummy component (no output),
391 specify the opt:--output-format=`dummy` option.
392+
393Example:
394+
395[role="term"]
396----
397$ babeltrace2 /path/to/trace --output-format=dummy
398----
399
400* To create an implicit compcls:sink.ctf.fs component (CTF traces
401 written to the file system), specify the opt:--output-format=`ctf`
402 and the opt:--output='DIR' (base output directory) options.
403+
404Example:
405+
406[role="term"]
407----
408$ babeltrace2 /path/to/input/trace --output-format=ctf \
409 --output=my-traces
410----
411
412You can combine multiple methods to create multiple implicit components.
413For example, you can trim an LTTng (CTF) trace, add debugging
414information to it, and write it as another CTF trace:
415
416[role="term"]
417----
418$ babeltrace2 /path/to/input/trace --timerange=22:14:38,22:15:07 \
419 --debug-info --output-format=ctf --output=out-dir
420----
421
422The equivalent man:babeltrace2-run(1) command of this `convert` command
423is:
424
425[role="term"]
426----
427$ babeltrace2 run --component=auto-disc-source-ctf-fs:source.ctf.fs \
428 --params='inputs=["/path/to/input/trace"]' \
429 --component=sink-ctf-fs:sink.ctf.fs \
430 --params='path="out-dir"' \
431 --component=muxer:filter.utils.muxer \
432 --component=trimmer:filter.utils.trimmer \
433 --params='begin="22:14:38"' \
434 --params='end="22:15:07"' \
435 --component=debug-info:filter.lttng-utils.debug-info \
436 --connect=auto-disc-source-ctf-fs:muxer \
437 --connect=muxer:trimmer \
438 --connect=trimmer:debug-info \
439 --connect=debug-info:sink-ctf-fs
440----
441
442The order of the implicit component options documented in this
443subsection is not significant.
444
445See <<examples,``EXAMPLES''>> for more examples.
446
447
448== OPTIONS
449
450include::common-gen-options.txt[]
451
452
453=== Explicit component creation
454
455See <<comp-create-expl,``Create explicit components''>> to learn how to
456use the following option.
457
458opt:-c $$[$$__NAME__:]'COMP-CLS-TYPE'.'PLUGIN-NAME'.'COMP-CLS-NAME'::
459opt:--component=$$[$$__NAME__:]'COMP-CLS-TYPE'.'PLUGIN-NAME'.'COMP-CLS-NAME'::
460 Create a component named 'NAME' (if specified) from the component
461 class of type 'COMP-CLS-TYPE' named 'COMP-CLS-NAME' found in the
462 plugin named 'PLUGIN-NAME', and set it as the current component.
463+
464The available values for 'COMP-CLS-TYPE' are:
465+
466--
467`source`::
468`src`::
469 Source component class.
470
471`filter`::
472`flt`::
473 Filter component class.
474
475`sink`::
476 Sink component class.
477--
478
479
480=== Common component creation
481
482See <<comp-create-expl,``Create explicit components''>> and
483<<comp-create-impl-non-opt,``Create implicit components from non-option
484arguments''>> to learn how to use the following options.
485
486The following options apply to either the current explicit component
487(last opt:--component option) or to :all: the implicit components
488created from the last non-option argument.
489
490opt:-l 'LVL'::
491opt:--log-level='LVL'::
492 Set the log level of the current component(s) to 'LVL'.
493+
494The available values for 'LVL' are:
495+
496--
497include::common-log-levels.txt[]
498--
499
500opt:-p 'PARAMS'::
501opt:--params='PARAMS'::
502 Add 'PARAMS' to the initialization parameters of the current
503 component(s).
504+
505If 'PARAMS' contains a key which exists in the initialization parameters
506of the current component(s), replace the parameter.
507+
508--
509include::common-cmd-params-format.txt[]
510--
511
512
513=== Legacy options to create implicit components
514
515opt:-i 'FORMAT'::
516opt:--input-format='FORMAT'::
517 Force the `convert` command to create components from a specific
518 component class for non-option arguments (see
519 <<comp-create-impl-non-opt,``Create implicit components from
520 non-option arguments''>>), or list available remote LTTng tracing
521 sessions.
522+
523The available values for 'FORMAT' are:
524+
525--
526`ctf`::
527 Use the compcls:source.ctf.fs component class.
528+
529Each non-option argument of the command line is a CTF trace or CTF
530trace chunk.
531+
532See man:babeltrace2-source.ctf.fs(7) to learn more about this
533component class.
534
535`lttng-live`::
536 Depending on the format of the first non-option argument:
537+
538--
539`net[4]://RDHOST[:RDPORT]`::
540 List the available remote LTTng tracing sessions for the LTTng relay
541 daemon at the address `RDHOST` and port `RDPORT` ({defrdport} if not
542 specified), and then exit.
543
544`net[4]://RDHOST[:RDPORT]/host/TGTHOST/SESSION`::
545 Use the compcls:source.ctf.lttng-live component class.
546+
547See man:babeltrace2-source.ctf.lttng-live(7) to learn more about this
548component class and the URL format.
549--
550--
551+
552You can specify at most one opt:--input-format option.
553
554opt:-o 'FORMAT', opt:--output-format='FORMAT'::
555 Create an implicit sink component with format 'FORMAT' or print
556 the metadata text of a CTF trace.
557+
558The available values for 'FORMAT' are:
559+
560--
561`text`::
562 Create an implicit compcls:sink.text.pretty component.
563+
564See <<impl-opts-text,``Implicit compcls:sink.text.pretty component''>>.
565+
566See man:babeltrace2-sink.text.pretty(7) to learn more about this
567component class.
568
569`ctf`::
570 Create an implicit compcls:sink.ctf.fs component. Specify the base
571 output path with the opt:--output option.
572+
573See man:babeltrace2-sink.ctf.fs(7) to learn more about this component
574class.
575
576`dummy`::
577 Create an implicit compcls:sink.utils.dummy component.
578+
579See man:babeltrace2-sink.utils.dummy(7) to learn more about this
580component class.
581
582`ctf-metadata`::
583 Print the metadata text of a CTF trace and exit.
584+
585The first non-option argument specifies the path to the CTF trace.
586--
587+
588You can specify at most one opt:--output-format option.
589
590
591[[impl-opts-ctf]]
592=== Implicit compcls:source.ctf.fs component(s)
593
594See man:babeltrace2-source.ctf.fs(7) to learn more about this component
595class.
596
597opt:--clock-force-correlate::
598 Set the manparam:source.ctf.fs:force-clock-class-origin-unix-epoch
599 initialization parameter of all the implicit compcls:source.ctf.fs
600 components to true.
601+
602The manparam:source.ctf.fs:force-clock-class-origin-unix-epoch
603initialization parameter makes all the created clock classes have a Unix
604epoch origin. This is useful to force the clock classes of multiple
605traces to be compatible even if they are not inherently.
606
607opt:--clock-offset='SEC'::
608 Set the manparam:source.ctf.fs:clock-class-offset-s initialization
609 parameter of all the implicit compcls:source.ctf.fs components to
610 'SEC'.
611+
612The manparam:source.ctf.fs:clock-class-offset-s initialization parameter
613adds 'SEC' seconds to the offsets of all the clock classes that the
614component creates.
615+
616You can combine this option with opt:--clock-offset-ns.
617
618opt:--clock-offset-ns='NS'::
619 Set the manparam:source.ctf.fs:clock-class-offset-ns initialization
620 parameter of all the implicit compcls:source.ctf.fs components to
621 'NS'.
622+
623The manparam:source.ctf.fs:clock-class-offset-ns initialization
624parameter adds 'NS' nanoseconds to the offsets of all the clock classes
625that the component creates.
626+
627You can combine this option with opt:--clock-offset-s.
628
629
630=== Implicit compcls:filter.utils.trimmer component
631
632If you specify at least one of the following options, you create an
633implicit compcls:filter.utils.trimmer component.
634
635See man:babeltrace2-filter.utils.trimmer(7) to learn more about
636this component class.
637
638opt:--begin='TIME'::
639 Set the manparam:filter.utils.trimmer:begin initialization parameter
640 of the component to 'TIME'.
641+
642You cannot use this option with the opt:--timerange option.
643+
644The format of 'TIME' is one of:
645+
646--
647include::common-trimmer-time-format.txt[]
648--
649
650opt:--end='TIME'::
651 Set the manparam:filter.utils.trimmer:end initialization parameter
652 of the component to 'TIME'.
653+
654You cannot use this option with the opt:--timerange option.
655+
656See the opt:--begin option for the format of 'TIME'.
657
658opt:--timerange='BEGIN','END'::
659 Equivalent to opt:--begin='BEGIN' and opt:--end='END'.
660+
661You can also surround the whole argument with `[` and `]`.
662
663
664=== Implicit compcls:filter.lttng-utils.debug-info component
665
666If you specify at least one of the following options, you create an
667implicit compcls:filter.lttng-utils.debug-info component. This component
668only alters compatible LTTng events.
669
670See man:babeltrace2-filter.lttng-utils.debug-info(7) to learn more about
671this component class.
672
673opt:--debug-info::
674 Create an implicit compcls:filter.lttng-utils.debug-info component.
675+
676This option is useless if you specify any of the options below.
677
678opt:--debug-info-dir='DIR'::
679 Set the manparam:filter.lttng-utils.debug-info:debug-info-dir
680 initialization parameter of the component to 'DIR'.
681+
682The manparam:filter.lttng-utils.debug-info:debug-info-dir parameter
683indicates where the component should find the debugging information it
684needs if it's not found in the actual executable files.
685
686opt:--debug-info-full-path::
687 Set the manparam:filter.lttng-utils.debug-info:full-path
688 initialization parameter of the component to true.
689+
690When the manparam:filter.lttng-utils.debug-info:full-path parameter is
691true, the component writes the full (absolute) paths to files in its
692debugging information fields instead of just the short names.
693
694opt:--debug-info-target-prefix='PREFIX'::
695 Set the manparam:filter.lttng-utils.debug-info:target-prefix
696 initialization parameter of the component to 'PREFIX'.
697+
698The manparam:filter.lttng-utils.debug-info:target-prefix parameter is a
699path to prepend to the paths to executables recorded in the trace. For
700example, if a trace contains the executable path `/usr/bin/ls` in its
701state dump events, and you specify
702opt:--debug-info-target-prefix=`/home/user/boards/xyz/root`, then the
703component opens the `/home/user/boards/xyz/root/usr/bin/ls` file to find
704debugging information.
705
706
707[[impl-opts-text]]
708=== Implicit compcls:sink.text.pretty component
709
710If you specify at least one of the following options, you force the
711`convert` command's sink component to be an implicit
712compcls:sink.text.pretty component.
713
714See man:babeltrace2-sink.text.pretty(7) to learn more about this
715component class.
716
717opt:--clock-cycles::
718 Set the manparam:sink.text.pretty:clock-seconds initialization
719 parameter of the component to true.
720+
721The manparam:sink.text.pretty:clock-cycles parameter makes the component
722print the event time in clock cycles.
723
724opt:--clock-date::
725 Set the manparam:sink.text.pretty:clock-date initialization
726 parameter of the component to true.
727+
728The manparam:sink.text.pretty:clock-date parameter makes the component
729print the date and the time of events.
730
731opt:--clock-gmt::
732 Set the manparam:sink.text.pretty:clock-gmt initialization parameter
733 of the component to true.
734+
735The manparam:sink.text.pretty:clock-gmt parameter makes the component
736not apply the local timezone to the printed times.
737
738opt:--clock-seconds::
739 Set the manparam:sink.text.pretty:clock-seconds initialization
740 parameter of the component to true.
741+
742The manparam:sink.text.pretty:clock-seconds parameter makes the
743component print the event times in seconds since the Unix epoch.
744
745opt:--color='WHEN'::
746 Set the manparam:sink.text.pretty:color initialization parameter of
747 the component to 'WHEN'.
748+
749The available values for 'WHEN' are:
750+
751--
752`auto`::
753 Only emit terminal color codes when the standard output and error
754 streams are connected to a color-capable terminal.
755
756`never`::
757 Never emit terminal color codes.
758
759`always`::
760 Always emit terminal color codes.
761--
762+
763The `auto` and `always` values have no effect if the
764`BABELTRACE_TERM_COLOR` environment variable is set to `NEVER`.
765
766opt:--fields='FIELD'[,'FIELD']...::
767 For each 'FIELD', set the nlparam:field-FIELD initialization
768 parameter of the component to true.
769+
770For example, opt:--fields=`trace,loglevel,emf` sets the
771manparam:sink.text.pretty:field-trace,
772manparam:sink.text.pretty:field-loglevel, and
773manparam:sink.text.pretty:field-emf initialization parameters to true.
774+
775The available value for 'FIELD' are:
776+
777* `trace`
778* `trace:hostname`
779* `trace:domain`
780* `trace:procname`
781* `trace:vpid`
782* `loglevel`
783* `emf`
784* `callsite`
785
786opt:--names='NAME'[,'NAME']...::
787 For each 'NAME', set the nlparam:name-NAME initialization parameter
788 of the component to true.
789+
790For example, opt:--names=`payload,scope` sets the
791manparam:sink.text.pretty:name-payload and
792manparam:sink.text.pretty:name-scope initialization parameters to true.
793+
794The available value for 'NAME' are:
795+
796* `payload`
797* `context`
798* `scope`
799* `header`
800
801opt:--no-delta::
802 Set the manparam:sink.text.pretty:no-delta initialization parameter
803 of the component to true.
804+
805When the manparam:sink.text.pretty:no-delta parameter is true, the
806component does not print the duration since the last event on the line.
807
808
809=== Shared options
810
811opt:-w 'PATH'::
812opt:--output='PATH'::
813 With opt:--output-format=`ctf-metadata` or
814 opt:--input-format=`lttng-live` (when printing the available remote
815 LTTng tracing sessions), write the text to the file 'PATH' instead
816 of the standard output.
817+
818When you specify opt:--output-format=`ctf`, set the
819manparam:sink.ctf.fs:path initialization parameter of the implicit
820compcls:sink.ctf.fs component to 'PATH'.
821+
822Without any specified sink component, explicit or implicit, force the
823`convert` command's sink component to be an implicit
824compcls:sink.text.pretty component and set its
825manparam:sink.text.pretty:path initialization parameter to 'PATH'.
826+
827See man:babeltrace2-sink.ctf.fs(7) and
828man:babeltrace2-sink.text.pretty(7) to learn more about those component
829classes.
830
831
832=== Equivalent `babeltrace2 run` arguments
833
834opt:--run-args::
835 Print the equivalent man:babeltrace2-run(1) arguments instead of
836 creating and running the conversion graph.
837+
838The printed arguments are space-separated and individually escaped for
839safe shell input.
840+
841You cannot use this option with the opt:--run-args-0 or
842opt:--stream-intersection option.
843
844opt:--run-args-0::
845 Print the equivalent man:babeltrace2-run(1) arguments instead of
846 creating and running the conversion graph.
847+
848The printed arguments are separated with a null character and :not:
849escaped for safe shell input.
850+
851You cannot use this option with the opt:--run-args or
852opt:--stream-intersection option.
853
854
855=== Conversion graph configuration
856
857opt:--retry-duration='TIME-US'::
858 Set the duration of a single retry to 'TIME-US'~µs when a sink
859 component reports "try again later" (busy network or file system,
860 for example).
861+
862Default: 100000 (100~ms).
863
864opt:--stream-intersection::
865 Enable the stream intersection mode.
866+
867In this mode, for each trace, the `convert` command filters out the
868events and other messages which are not in the time range where _all_
869the trace's streams are active.
870+
871To use this option, all the source components, explicit and implicit,
872must have classes which support the `babeltrace.trace-infos` query
873object (see man:babeltrace2-query-babeltrace.trace-infos(7)). The only
874Babeltrace~2 project's component class which supports this query
875object is compcls:source.ctf.fs.
876+
877You cannot use this option with the opt:--run-args or opt:--run-args-0
878option.
879
880=== Other legacy options
881
882The following options exist for backward compatibility with the
883man:babeltrace(1) program.
884
885opt:-d::
886opt:--debug::
887 Legacy option: this is equivalent to nlopt:--log-level=`TRACE`,
888 where nlopt:--log-level is the general option (not this command's
889 opt:--log-level option).
890
891opt:-v::
892opt:--verbose::
893 Legacy option: this is equivalent to nlopt:--log-level=`INFO`, where
894 nlopt:--log-level is the general option (not this command's
895 opt:--log-level option).
896+
897This option also sets the manparam:sink.text.pretty:verbose parameter of
898the implicit compcls:sink.text.pretty component (see
899man:babeltrace2-sink.text.pretty(7)) to true.
900
901include::common-cmd-info-options.txt[]
902
903
904[[examples]]
905== EXAMPLES
906
907include::common-convert-examples.txt[]
908
909
910include::common-cli-env.txt[]
911
912
913include::common-cli-files.txt[]
914
915
916include::common-cmd-footer.txt[]
917
918
919== SEE ALSO
920
921man:babeltrace2-intro(7),
922man:babeltrace2(1),
923man:babeltrace2-run(1)
This page took 0.033288 seconds and 4 git commands to generate.