[lttng-dev] [RFC lttng-tools] XML Machine interface
Jonathan Rajotte
jonathan.r.julien at gmail.com
Fri Jun 20 10:58:44 EDT 2014
Hi all,
I'd like to submit the following patches from my personal lttng-tools
branch (mi_cherry) for merge in master[1].
28aad7c - Mi: mi backend + mi for command version
bddf017 - Mi: add mi support for lttng struct
41da590 - Mi: support for command list
df7e32c - Mi: mi xsd validation
b3ef7e9 - Mi version command: add commit version to mi version
f4314c5 - Fix: remove extra linking due to add of mi-lttng to libcommon
08a8d16 - Mi save&load command: support and validation
b434498 - Mi start command: support and validation
8176e46 - Mi stop command: support and validation
31523df - Mi create command: support and validation
465c1a8 - Mi destroy command: support and validation
7d5be2a - Mi calibrate command: support and validation
c5a67ea - Mi add-context command: support and validation
ad5e38c - Mi enable_channel command: support and validation
2a88c72 - Mi enable-event command: support for enable-event command
6419e1d - Mi set-session command: support and validation
ce7ba65 - Mi disable-event command: support and validation
c5b80e9 - Mi disable-channel command: support and validation
54a1a6f - Mi fix: basic formatting
These patches add the ability to output a machine friendly format (XML for now)
to the command line. This can be used to standardize the communication
between lttng-tool CLI and any XML friendly program.
The machine interface is outputted as XML following a schema which is included
in the patches.
Quick user guide to try out this feature:
# add --mi xml between lttng and the normal command
lttng --mi xml list -k
lttng --mi xml create test
# you can also use -m xml
lttng -m xml enable-event -a -k
Looking forward to your comments,
[1] https://github.com/PSRCode/lttng-tools-dev/tree/mi_cherry
--
Jonathan Rajotte Julien
More information about the lttng-dev
mailing list