[lttng-dev] lttng command line user-friendliness
Francis Giraldeau
francis.giraldeau at gmail.com
Mon Sep 10 09:44:02 EDT 2012
Le 2012-09-10 07:25, Woegerer, Paul a écrit :
> What about adding something similar to "perf record" to lower the
> barrier for such users. For example:
>
> lttng record [--session-name <name>] [--session-template
> <session_template_file>] -- <command> [<options>]
>
> Where the optional session_template_file may only contain
> "enable-channel, enable-event and add-context" commands. If omitted the
> following could be the (trivial) default session template:
>
> enable-event -u -a
>
>
> Would this make sense for others as well ? Any alternative suggestions ?
I totally agree with you. For that purpose, I did a small python script
lttng-simple that wraps commands and create a trace in the current
directory, like perf does. While it does what I need, a more generic
solution should be provided using the API instead of the ugly command
line subprocess ;)
https://github.com/giraldeau/workload-kit/tree/master/utils
Cheers,
Francis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4489 bytes
Desc: Signature cryptographique S/MIME
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20120910/358bd062/attachment.bin>
More information about the lttng-dev
mailing list