File: README.md

package info (click to toggle)
ltt-control 2.14.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 22,400 kB
  • sloc: cpp: 192,720; sh: 29,271; ansic: 10,960; python: 7,419; makefile: 3,534; java: 109; xml: 46
file content (23 lines) | stat: -rw-r--r-- 1,031 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
The `filter.lttngtest.event_name` plugin only has a single input and output port.
This means that it cannot be connected directly to a `source.ctf.fs` plugin, as
those have multiple output ports for the different event streams.

A `filter.utils.muxer` plugin must be placed between any multi-output port plugin
and the `filter.lttngtest.event_name` plugin. This is done automatically with in
the architecture created by `babeltrace2 convert`.

Example with `babeltrace2 convert`:

```
SOURCE_PATH=/tmp/tmp.1J5DueCziG
EVENT_NAME=tp:the_string
babeltrace2 --plugin-path=.libs/ convert "${SOURCE_PATH}" -c filter.lttngtest.event_name -p "names=[\"$EVENT_NAME\"]" -c sink.lttngtest.field_stats
```

Example with `babeltrace2 run`:

```
SOURCE_PATH=/tmp/tmp.1J5DueCziG
EVENT_NAME=tp:the_string
babeltrace2 --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
```