sink.text.details: add `with-data` initialization parameter
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 20 Sep 2019 09:52:33 +0000 (05:52 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 25 Sep 2019 02:37:24 +0000 (22:37 -0400)
commitcc413248eefb5938459338ea1c543d0e03a339fc
tree6a99f6aa808dae47a183440e1c10dea936d9d8f7
parent54d785facc63ded43f23e60b8acb46250d82cfbe
sink.text.details: add `with-data` initialization parameter

This patch makes a `sink.text.details` component handle a new
`with-data` initialization parameter. This new parameter controls
whether or not the component writes data lines, as opposed to metadata
lines: anything that's not metadata is considered data, except for
message iterator inactivity messages.

This can be useful to inspect the metadata blocks of the received
messages without having all the message lines.

The new `default-without-data-without-metadata.expect` expectation file
is empty because, without data and without metadata, there's effectively
nothing to write.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I844073b2080df373501a9216d8041f4d6b799c08
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2076
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-by: Francis Deslauriers <francis.deslauriers@efficios.com>
src/plugins/text/details/details.c
src/plugins/text/details/details.h
src/plugins/text/details/write.c
tests/data/plugins/sink.text.details/succeed/default-without-data-without-metadata.expect [new file with mode: 0644]
tests/data/plugins/sink.text.details/succeed/default-without-data.expect [new file with mode: 0644]
tests/plugins/sink.text.details/succeed/test_succeed
This page took 0.024809 seconds and 4 git commands to generate.