babeltrace2-query(1): erroneous parameter used in example
[babeltrace.git] / doc / man / babeltrace2-query.1.txt
... / ...
CommitLineData
1= babeltrace2-query(1)
2:manpagetype: command
3:revdate: 14 September 2019
4
5
6== NAME
7
8babeltrace2-query - Query an object from a Babeltrace 2 component class
9
10
11== SYNOPSIS
12
13[verse]
14*babeltrace2* [<<gen-opts,'GENERAL OPTIONS'>>] *query* [opt:--params='PARAMS']
15 'COMP-CLS-TYPE'.'PLUGIN-NAME'.'COMP-CLS-NAME' 'OBJECT'
16
17
18== DESCRIPTION
19
20The `query` command queries the object named 'OBJECT' from the component
21class named 'COMP-CLS-NAME' of the type 'COMP-CLS-TYPE' found in the
22Babeltrace~2 plugin named 'PLUGIN-NAME' and prints the results.
23
24include::common-see-babeltrace2-intro.txt[]
25
26The available values for 'COMP-CLS-TYPE' are:
27
28`source`::
29`src`::
30 Source component class.
31
32`filter`::
33`flt`::
34 Filter component class.
35
36`sink`::
37 Sink component class.
38
39The exact object names and the parameters that a given component class
40expects are described in its own documentation. man:babeltrace2-help(1)
41can generally provide this information.
42
43You can use the opt:--params option to pass parameters to the component
44class's query operation.
45
46The output of the `query` command can look like https://yaml.org/[YAML],
47but it's not guaranteed to be YAML-compliant.
48
49See <<examples,``EXAMPLES''>> for usage examples.
50
51
52== OPTIONS
53
54include::common-gen-options.txt[]
55
56
57=== Query parameters
58
59opt:-p 'PARAMS'::
60opt:--params='PARAMS'::
61 Set the query parameters to 'PARAMS'.
62+
63--
64include::common-cmd-params-format.txt[]
65--
66
67
68include::common-cmd-info-options.txt[]
69
70
71[[examples]]
72== EXAMPLES
73
74.Query the available tracing sessions of a local LTTng relay daemon.
75====
76[role="term"]
77----
78$ babeltrace2 query src.ctf.lttng-live sessions \
79 --params='url="net://localhost"'
80----
81====
82
83.Query the metadata info (includes the decoded plain text) of a CTF trace located on the local file system.
84====
85[role="term"]
86----
87$ babeltrace2 query src.ctf.fs metadata-info \
88 --params='inputs=["/path/to/trace"]'
89----
90====
91
92.Query the trace infos of a CTF trace located on the local file system.
93====
94[role="term"]
95----
96$ babeltrace2 query src.ctf.fs babeltrace.trace-infos \
97 --params='inputs=["/path/to/trace"]'
98----
99====
100
101.Query some object from a sink component class without parameters.
102====
103[role="term"]
104----
105$ babeltrace2 query sink.my-plugin.my-sink some-object
106----
107====
108
109
110include::common-cli-env.txt[]
111
112
113include::common-cli-files.txt[]
114
115
116include::common-cmd-footer.txt[]
117
118
119== SEE ALSO
120
121man:babeltrace2-intro(7),
122man:babeltrace2(1)
This page took 0.023494 seconds and 4 git commands to generate.