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:28:40 +0000 (11:28 -0400)
commit899a1d74c4d89be21b071d8cd567c3ce530759c6
tree97f30c62e4c8a8500ea52846e347cad4c02ce881
parent707b323a92becb2487cfb0e2eb4af02f8e011d48
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.024585 seconds and 4 git commands to generate.