lib: rename include dir to babeltrace2
[babeltrace.git] / doc / man / babeltrace-log.1.txt
CommitLineData
0659f3af
PP
1babeltrace-log(1)
2=================
3:manpagetype: program
4:revdate: 5 October 2017
5
6
7NAME
8----
9babeltrace-log - Convert a Linux kernel ring buffer to a CTF trace
10
11
12SYNOPSIS
13--------
14[verse]
15*babeltrace-log* [opt:--with-timestamps] 'OUTPUT-PATH'
16
17
18DESCRIPTION
19-----------
20The `babeltrace-log` tool reads the lines of a Linux kernel ring buffer,
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----
29$ dmesg | babeltrace-log --with-timestamps my-trace
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
36By default, `babeltrace-log` does not try to extract the timestamps of
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
45could be extracted. You can make `babeltrace-log` extract timestamps
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---------------------
59See the environment variables of man:babeltrace-source.text.dmesg(7),
60man:babeltrace-filter.utils.muxer(7), and
61man:babeltrace-sink.ctf.fs(7).
62
63include::common-lib-env.txt[]
64
65include::common-cli-files.txt[]
66
67include::common-cmd-footer.txt[]
68
69
70SEE ALSO
71--------
72man:babeltrace-intro(7),
73man:babeltrace-source.text.dmesg(7),
74man:babeltrace-filter.utils.muxer(7),
75man:babeltrace-sink.ctf.fs(7)
This page took 0.030562 seconds and 4 git commands to generate.