From: Jonathan Rajotte Date: Sun, 6 Apr 2014 19:30:32 +0000 (-0400) Subject: Mi: mi backend + mi for command version X-Git-Tag: v2.6.0-rc1~133 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=c7e35b037773dbbfe10178c946ba44feefb226e1;hp=c7e35b037773dbbfe10178c946ba44feefb226e1 Mi: mi backend + mi for command version The machine interface option is now available for version. Other commands will shortly follow. Mi backend is expected to grow with addition of mi support to other commands. How to use: lttng --mi This syntax will be the same for all commands. Currently *only xml is supported as machine interface output.* As for errors handling, if an error/warning occurs while using mi it will be reported on stderr as normal. The integrity of the mi output cannot be guaranteed if an error/warning occurs. The error output format is consistent and easy for a machine client to parse. Thus no mi output format is required for error output. Example: lttng --mi xml version Output: version 2.4.0-rc2 2 4 0 Époque Opaque The Époque Opaque is a black IPA from Trou du Diable brewery. The nose is eerily reminiscent of the coffee crisp candy from of our childhood. These strong mocha accents are present on the palate, which are quickly subdued by Japanese and Australian hops leading to a final state of satisfaction enjoyable for any fan of bitter beer. http://lttng.org lttng is free software and under the GPL license and part LGPL Signed-off-by: Olivier Cotte Signed-off-by: Jonathan Rajotte Signed-off-by: David Goulet ---