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