Add src.text.dmesg component class
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 5 Jul 2017 23:00:58 +0000 (19:00 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 6 Jul 2017 21:26:39 +0000 (17:26 -0400)
commite2531d3bfa5ee27c4ecca3179a3e2363f859c602
treef1e96e6e4552540e5001101b42bc6bc5daccba08
parent8fdb4bc7376937880b41b4726b9afa915d3aa5a8
Add src.text.dmesg component class

The new src.text.dmesg component class reads the standard input or a
specific file and converts each line to a CTF IR event, building the
appropriate metadata objects when needed.

This component does what babeltrace-log(1) used to do. The
babeltrace-log(1) application can be replicated as such:

    dmesg | babeltrace -c src.text.dmesg -p read-from-stdin=yes \
                       --no-debug-info -o ctf -w /path/to/output

The component class's initialization parameters are:

`read-from-stdin`:
    True to read the lines from the standard input stream (excludes
    `path`).

`path`:
    Path to the regular file from which to read lines (excludes
    `read-from-stdin`).

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
cli/babeltrace.c
configure.ac
plugins/text/Makefile.am
plugins/text/dmesg/Makefile.am
plugins/text/dmesg/dmesg.c
plugins/text/dmesg/dmesg.h
plugins/text/dmesg/logging.c [new file with mode: 0644]
plugins/text/dmesg/logging.h [new file with mode: 0644]
plugins/text/plugin.c
This page took 0.025174 seconds and 4 git commands to generate.