Add sinces
[lttng-docs.git] / contents / using-lttng / controlling-tracing / mi.md
CommitLineData
c23b8cb1
PP
1---
2id: mi
86384750 3since: 2.6
c23b8cb1
PP
4---
5
6The `lttng` tool aims at providing a command output as human-readable as
7possible. While this output is easy to parse by a human being, machines
47bfcb75 8have a hard time.
c23b8cb1
PP
9
10This is why the `lttng` tool provides the general `--mi` option, which
11must specify a machine interface output format. As of the latest
12LTTng stable release, only the `xml` format is supported. A schema
13definition (XSD) is made
14<a href="https://github.com/lttng/lttng-tools/blob/master/src/common/mi_lttng.xsd" class="ext">available</a>
15to ease the integration with external tools as much as possible.
16
17The `--mi` option can be used in conjunction with all `lttng` commands.
18Here are some examples:
19
20<pre class="term">
21lttng --mi xml create some-session
22lttng --mi xml list some-session
23lttng --mi xml list --kernel
24lttng --mi xml enable-event --kernel --syscall open
25lttng --mi xml start
26</pre>
This page took 0.023747 seconds and 4 git commands to generate.