Actions
Feature #273
closedGet information from lttng command using a standard output format
Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
06/19/2012
Due date:
% Done:
100%
Estimated time:
Description
Suggestion to add an option to some lttng
commands to get the output in XML/JSON/other standard format for easier automated parsing.
Example:
# lttng list --json auto-20120619-131154 { kernel: { "channel0": { enabled: true, attributes: { overwriteMode: 0, subbuffers: { count: 4, size: 262144 }, switchTimerInterval: 0, readTimerInterval: 200, output: "splice()" }, events: { syscalls: { enabled: true }, tracepoints: { "block_rq_remap": { logLevel: { name: "TRACE_EMERG", value: 0 }, enabled: true }, "irq_handler_exit": { logLevel: { name: "TRACE_EMERG", value: 0 }, enabled: true }, "timer_start": { logLevel: { name: "TRACE_EMERG", value: 0 }, enabled: false } } } } } } # lttng list --xml auto-20120619-131154 <?xml version="1.0" encoding="utf-8" ?> <kernel> <channel name="channel0" enabled="true"> <attributes> <attr name="overwriteMode" value="0" /> <attr name="subbuffersCount" value="4" /> <attr name="subbuffersSize" value="262144" /> <attr name="switchTimerInterval" value="0" /> <attr name="readTimerInterval" value="200" /> <attr name="output" value="splice()" /> </attributes> <events> <syscalls enabled="true" /> <tracepoints> <event name="block_rq_remap" enabled="true"> <loglevel name="TRACE_EMERG" value="0" /> </event> <event name="irq_handler_exit" enabled="true"> <loglevel name="TRACE_EMERG" value="0" /> </event> <event name="timer_start" enabled="false"> <loglevel name="TRACE_EMERG" value="0" /> </event> </tracepoints> </events> </channel> </kernel>
Actions