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)
commit5781a9240e644d5771f32ed49d700791b5c1ca98
tree40498934635e9296ea968ce0b6d5596eb719b843
parent8743317e85656acaf9947a25c4ddd408eb934ff6
Fix babeltrace-log(1) for Babeltrace 2

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>
cli/Makefile.am
cli/babeltrace-log.c
configure.ac
This page took 0.02516 seconds and 4 git commands to generate.