[lttng-dev] [documentation] Drawing: LTTng trace session in relation to commandline options

Alexandre Montplaisir alexmonthy at voxpopuli.im
Tue May 27 13:50:26 EDT 2014


Nice work! These kind of high-level diagrams can be really helpful to 
new users.

Just a side-note wouldn't it be interesting to also carry the original 
(inkscape?) file in the git tree? That way if we want to make changes or 
additions we don't have to start over.

Cheers,
Alexandre


On 05/27/2014 01:40 PM, Randy Wijnants wrote:
> Excelent! Used all of your improved syntaxes. Simplified /
> restructured enable-event a
> bit so that this is more readable in the drawing.
>
> Also added lttng relayd / snapshot syntaxes.
>
> Changed "Kernelspace specific" into "Kernel specific".
>
> Added footnotes.
>
> Excuse me for the SVG problem. I created this in google docs. I didn't
> assume google's way of exporting SVGs was so poor, i have the same issue
> using inkscape.
> If i have time i will migrate it manually to inkscape. That might indeed
> explain the misalignment issue you described.
>
> Let me know what you think : )
>
> http://tty32.org/Trace%20session.png
>
>
> Greetings,
> Randy Wijnants.
> "The good part about UDP jokes is that i don't have to worry if you get it
> or not"
>
>
> On 27 May 2014 17:19, Thibault, Daniel <Daniel.Thibault at drdc-rddc.gc.ca>wrote:
>
>> ----------------------------------------------------------------------
>> Date: Tue, 27 May 2014 13:34:20 +0200
>> From: Randy Wijnants <dev at tty32.org>
>>
>>> In addition to the LTTng architecture diagram, I've drawn a diagram that
>> shows the relation between the command line options and how to configure a
>> trace session.
>>> I hope it proves to be useful, if you have any suggestions let me know!
>>>
>>> Originally posted on IRC. As suggested by Compudj i've released it under
>> CC license.
>>> http://tty32.org/Trace%20session.png
>>> http://tty32.org/Trace%20session.svg
>>>
>>> Randy Wijnants.
>> ----------------------------------------------------------------------
>>
>>     Neither the png nor svg versions line up correctly the text and
>> coloured boxes with each other.  This may be a local rendering issue.  At
>> least the svg version has a proper white background (my png renders with a
>> very dark grey background, making it very hard to make out some of the
>> text).  However, the svg version is unusable because none of the text is
>> text: everything is svg:path with opaque d attributes (this may explain the
>> alignment problems).
>>
>>     Here are improved (more accurate) expressions for the various command
>> syntaxes:
>>
>> $ lttng create [NAME] [--ctrl-url URL --data-url URL | --output PATH |
>> --set-url URL | --no-output] [--snapshot]
>>     (the ctrl-url etc. options are in pre-emption order)
>>
>> $ lttng enable-channel (-k | -u) [--session NAME] NAME[,NAME2,...]
>> [--discard | --overwrite] [--subbuf-size SIZE] [--num-subbuf NUM]
>> [--switch-timer USEC] [--read-timer USEC] \
>>
>>                                        [--output (mmap | splice)]
>> [--buffers-uid | --buffers-pid | --buffers-global] [--tracefile-size SIZE
>> [--tracefile-count COUNT]]
>>
>> $ lttng enable-event (-k | -u) [--session NAME] [--channel NAME] (--all
>> [--tracepoint | --syscall] | \
>>                                              NAME[,NAME2,...] [--tracepoint
>> [(--loglevel | --loglevel-only) LOGLEVEL] [--filter 'EXPRESSION'] |
>> (--probe | --function) (addr | symbol | symbol+offset)])
>>
>> $ lttng add-context (-k | -u) [--session NAME] [--channel NAME] (--type
>> TYPE)+
>>
>> $ lttng list (-k | -u)
>>     (not the full syntax, but rather the syntax that will get just a list
>> of event names)
>>
>> $ lttng add-context --help
>>     (the only one that doesn't change!)
>>
>>     Change "Kernelspace specific" into "Kernel specific".
>>
>>     Add footnotes:
>> * --session NAME defaults to the current session
>> * --channel NAME in the enable-event case defaults to 'channel0', but only
>> if the domain is virgin
>> * --channel NAME in the add-context case defaults to all channels
>>
>> 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 <http://www.travelgis.com/map.asp?addr=918V%20QSDJ>
>> Gouvernement du Canada | Government of Canada
>> <http://www.valcartier.drdc-rddc.gc.ca/>
>>
>
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20140527/e77ab078/attachment.html>


More information about the lttng-dev mailing list