lib: rename include dir to babeltrace2
[babeltrace.git] / doc / man / babeltrace-source.text.dmesg.7.txt
CommitLineData
0659f3af
PP
1babeltrace-source.text.dmesg(7)
2===============================
3:manpagetype: component class
4:revdate: 5 October 2017
5
6
7NAME
8----
9babeltrace-source.text.dmesg - Babeltrace's Linux kernel ring buffer
10source component class
11
12
13DESCRIPTION
14-----------
15The Babeltrace compcls:source.text.dmesg component class, provided by
16the man:babeltrace-plugin-text(7) plugin, once instantiated, reads the
17lines of a Linux kernel ring buffer, as printed by the man:dmesg(1)
18tool, and emits corresponding event notifications on its output port.
19
20The events created by a compcls:source.text.dmesg component are named
21`string` and contain a single payload string field named `str` which
22contains the corresponding ring buffer line.
23
24By default, a compcls:source.text.dmesg component reads the lines of the
25standard input stream. You can make the component read the lines of a
26text file instead with the param:path parameter.
27
28By default, the component tries to extract the timestamps of the kernel
29ring buffer lines and use them as the created events's timestamps. A
30typical man:dmesg(1) line looks like this:
31
32----
33[87166.510937] PM: Finishing wakeup.
34----
35
36In the last example, the `[87166.510937]` part is the timestamp to
37extract. You can make the component not extract timestamps from lines
38with the param:no-extract-timestamp parameter.
39
40
41INITIALIZATION PARAMETERS
42-------------------------
43The following parameters are optional.
44
45param:no-extract-timestamp=`yes` (boolean)::
46 Do :not: extract timestamps from the kernel ring buffer lines: set
47 the created event's payload's `str` field to the whole line,
48 including any timestamp prefix.
49
50param:path='PATH' (string)::
51 Read the kernel ring buffer lines from the file 'PATH' instead of
52 the standard input stream.
53
54
55PORTS
56-----
57Output
58~~~~~~
59`out`::
60 Single output port to which the component sends the created
61 notifications.
62
63
64QUERY OBJECTS
65-------------
66This component class has no objects to query.
67
68
69ENVIRONMENT VARIABLES
70---------------------
71include::common-common-compat-env.txt[]
72
73
74include::common-footer.txt[]
75
76
77SEE ALSO
78--------
79man:babeltrace-plugin-text(7),
80man:babeltrace-intro(7)
This page took 0.029711 seconds and 4 git commands to generate.