sink.text.details: add `with-data` initialization parameter
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 20 Sep 2019 09:52:33 +0000 (05:52 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 3 Oct 2019 14:45:10 +0000 (10:45 -0400)
commit08ef09ae373f03fdeb172f46cd97c723fda44380
tree060afb9b84ce2a4b61a47e2cff49781333354be5
parent7b6519c7f453e1e1cfb997277feb65427fec7b7d
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.025527 seconds and 4 git commands to generate.