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:24:19 +0000 (17:24 -0400)
commit33ec5dfa4f2fc8c23ddfdda61d5c69e1ae1875ea
tree92a5a40b9f5e06996119726095622f5da965e103
parent29a9ac94bad1e4bbf3fd9b58a5a35aef44b2514c
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.026116 seconds and 4 git commands to generate.