cli: use argpar for parsing query command's arguments
[babeltrace.git] / doc / man / babeltrace2-log.1.txt
CommitLineData
a8be4294 1babeltrace2-log(1)
0659f3af
PP
2=================
3:manpagetype: program
4:revdate: 5 October 2017
5
6
7NAME
8----
a8be4294 9babeltrace2-log - Convert a Linux kernel ring buffer to a CTF trace
0659f3af
PP
10
11
12SYNOPSIS
13--------
14[verse]
a8be4294 15*babeltrace2-log* [opt:--with-timestamps] 'OUTPUT-PATH'
0659f3af
PP
16
17
18DESCRIPTION
19-----------
a8be4294 20The `babeltrace2-log` tool reads the lines of a Linux kernel ring buffer,
0659f3af
PP
21as printed by the man:dmesg(1) tool, from the standard input stream and
22converts them to a http://diamon.org/ctf/[CTF] trace written to the
23'OUTPUT-PATH' directory.
24
25Usage example:
26
27[role="term"]
28----
a8be4294 29$ dmesg | babeltrace2-log --with-timestamps my-trace
0659f3af
PP
30----
31
32The events of the generated CTF trace are named `string` and contain a
33single payload string field named `str` which contains the corresponding
34ring buffer line.
35
a8be4294 36By default, `babeltrace2-log` does not try to extract the timestamps of
0659f3af
PP
37the kernel ring buffer lines to use them as the created events's
38timestamps. A typical man:dmesg(1) line looks like this:
39
40----
41[87166.510937] PM: Finishing wakeup.
42----
43
44In the last example, the `[87166.510937]` part is a timestamp which
a8be4294 45could be extracted. You can make `babeltrace2-log` extract timestamps
0659f3af
PP
46from lines with the opt:--with-timestamps option.
47
48
49OPTIONS
50-------
51opt:-t, opt:--with-timestamps::
52 Extract timestamps from the kernel ring buffer lines: set
53 the created event's payload's `str` field to the rest of the line,
54 excluding any timestamp prefix.
55
56
57ENVIRONMENT VARIABLES
58---------------------
a8be4294
MJ
59See the environment variables of man:babeltrace2-source.text.dmesg(7),
60man:babeltrace2-filter.utils.muxer(7), and
61man:babeltrace2-sink.ctf.fs(7).
0659f3af
PP
62
63include::common-lib-env.txt[]
64
65include::common-cli-files.txt[]
66
67include::common-cmd-footer.txt[]
68
69
70SEE ALSO
71--------
a8be4294
MJ
72man:babeltrace2-intro(7),
73man:babeltrace2-source.text.dmesg(7),
74man:babeltrace2-filter.utils.muxer(7),
75man:babeltrace2-sink.ctf.fs(7)
This page took 0.035944 seconds and 4 git commands to generate.