Fix babeltrace-log(1) for Babeltrace 2
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 7 Jul 2017 01:55:48 +0000 (21:55 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 7 Jul 2017 15:29:13 +0000 (11:29 -0400)
This fixes babeltrace-log(1) so that it works with the Babeltrace 2
tree.

What the program does now is to parse its arguments, create the
arguments to be passed to the babeltrace(1) CLI tool, and spawn a
babeltrace(1) process to build and run a processing graph.

babeltrace-log(1) executes babeltrace(1) as such:

    babeltrace run --component dmesg:src.text.dmesg --params read-from-stdin=yes
                   --params no-extract-timestamp=yes --component ctf:sink.ctf.fs
                   --key path --value /output/path --connect dmesg:ctf

`no-extract-timestamp=yes` becomes `no-extract-timestamp=no` with
babeltrace-log(1)'s -t/--with-timestamps option. The standard input is
forwarded to the child process.

Like babeltrace(1), the build system creates both babeltrace-log and
babeltrace-log.bin executables. The former spawns the in-tree
babeltrace(1) tool while the latter spawns the installed version.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>

No differences found
This page took 0.027288 seconds and 4 git commands to generate.