Actions
Feature #1008
closedMI interface should advertise its own version number
Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
04/01/2016
Due date:
% Done:
0%
Estimated time:
Description
It would be useful to have a version number for the MI interface itself, distinct from the LTTng version. This would help MI users know if the interface breaks in non-backwards compatible ways.
This version could be printed when doing lttng --mi xml --version
, or perhaps simply with lttng --version
.
Updated by Jonathan Rajotte Julien about 9 years ago
- Status changed from New to Resolved
Hi Alex,
Starting from LTTng 2.8 the mi version can be found in every mi output inside the <command>
element as the "schemaVersion" attributes.
The standalone version start from lttng 2.8 otherwise the mi version is the same as the toolchain version.
E.g
<?xml version="1.0" encoding="UTF-8"?> <command xmlns="http://lttng.org/xml/ns/lttng-mi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://lttng.org/xml/ns/lttng-mi http://lttng.org/xml/schemas/lttng-mi/3/lttng-mi-3.0.xsd" schemaVersion="3.0"> <name>version</name> <output> <version> <string>2.9.0-pre</string> <major>2</major> <minor>9</minor> <commit>v2.7.0-rc1-580-gb1300bf</commit> <patchLevel>0</patchLevel> <name>Codename TBD</name> <description>Description TBD</description> <url>https://lttng.org</url> <license>lttng is free software and under the GPL license and part LGPL</license> </version> </output> </command>
Cheers
Actions