tests: Replace babelstats.pl with bt2 plugins
[lttng-tools.git] / tests / utils / bt2_plugins / README.md
CommitLineData
9f263671
KS
1The `filter.lttngtest.event_name` plugin only has a single input and output port.
2This means that it cannot be connected directly to a `source.ctf.fs` plugin, as
3those have multiple output ports for the different event streams.
4
5A `filter.utils.muxer` plugin must be placed between any multi-output port plugin
6and the `filter.lttngtest.event_name` plugin. This is done automatically with in
7the architecture created by `babeltrace2 convert`.
8
9Example with `babeltrace2 convert`:
10
11```
12SOURCE_PATH=/tmp/tmp.1J5DueCziG
13EVENT_NAME=tp:the_string
14babeltrace2 --plugin-path=.libs/ convert "${SOURCE_PATH}" -c filter.lttngtest.event_name -p "names=[\"$EVENT_NAME\"]" -c sink.lttngtest.field_stats
15```
16
17Example with `babeltrace2 run`:
18
19```
20SOURCE_PATH=/tmp/tmp.1J5DueCziG
21EVENT_NAME=tp:the_string
22babeltrace2 --plugin-path=.libs/ run -c A:source.ctf.fs -p "inputs=[\"$SOURCE_PATH\"]" -c muxer:filter.utils.muxer -c B:filter.lttngtest.event_name -p "names=[\"$EVENT_NAME\"]" -c C:sink.lttngtest.field_stats -x A:muxer -x muxer:B -x B:C
23```
This page took 0.023138 seconds and 4 git commands to generate.