src.ctf.lttng-live: handle `babeltrace.support-info` query object
This patch makes a `src.ctf.lttng-live` component class handle the
`babeltrace.support-info` query object. The query method replies a
weight of 0.75 (arbitrary, but it leaves some room for other component
classes to recognize this very specific URL format) when the input
string matches
net://HOST[:PORT]/host/TGTHOST/SESSION
This makes it possible to create a conversion graph with a
`src.ctf.lttng-live` source like this:
babeltrace2 net://localhost/host/qualinet/pour-un-travail-sans-retouche
Note that this will use the component's default "session not found"
action which is to continue, so the `src.ctf.lttng-live` message
iterator will never end. The legacy mode still works, however; when you
do:
babeltrace2 -i lttng-live net://localhost/host/tgthost/session
the `convert` command adds the `session-not-found-action=end` parameter.
As such, when you do:
babeltrace2 -i lttng-live net://localhost/host/tgthost
the `convert` command queries the `sessions` object to list the
available remote tracing sessions.
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I73e38df1dfe9bed6d8e31015197a34945af026e5
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1944
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
This page took 0.024684 seconds and 4 git commands to generate.