From mboxrd@z Thu Jan 1 00:00:00 1970
From: Daniel.Thibault@drdc-rddc.gc.ca (Thibault, Daniel)
Date: Thu, 13 Feb 2014 20:41:48 +0000
Subject: [lttng-dev] Machine Interface
In-Reply-To: <20140213203627.GC16437@gmail.com>
References: <48CF5AC71E61DB46B70D0F388054EFFD267E7531@VAL-E-01.valcartier.drdc-rddc.gc.ca>
<20140213203627.GC16437@gmail.com>
Message-ID: <48CF5AC71E61DB46B70D0F388054EFFD267E7556@VAL-E-01.valcartier.drdc-rddc.gc.ca>
-----Message d'origine-----
> This should be :
> for MI input: lttng machine
> for XML output: lttng --xml
>
> --xml would be an option for each command
> The syntax would be: lttng list -k --xml and the output would be an xml-formatted list of kernel tracepoints to stdout.
Okay, how about an example where one uses ' lttng list -k --xml' to get the list of kernel tracepoints and then pipes this to 'enable-event' in order to enable each event? As a one-liner, mind you. The idea is one would insert some sed/grep magic in the pipe to assign events to channels or filter some out.
Daniel U. Thibault
Protection des syst?mes et contremesures (PSC) | Systems Protection & Countermeasures (SPC)
Cyber s?curit? pour les missions essentielles (CME) | Mission Critical Cyber Security (MCCS)
R & D pour la d?fense Canada - Valcartier (RDDC Valcartier) | Defence R&D Canada - Valcartier (DRDC Valcartier)
2459 route de la Bravoure
Qu?bec QC G3J 1X5
CANADA
Vox : (418) 844-4000 x4245
Fax : (418) 844-4538
NAC : 918V QSDJ
Gouvernement du Canada | Government of Canada