<div dir="ltr"><div>Thanks for the explaination of the interface between the session and consumer daemon.</div><div><br></div><div>Incorporated all of your suggestions into the graphic.</div><div><br></div><div>Updated version:</div>
<a href="http://tty32.org/Logging%20configuration2.png">http://tty32.org/Logging%20configuration2.png</a><br><div><a href="http://tty32.org/Logging%20configuration2.svg">http://tty32.org/Logging%20configuration2.svg</a><br>
</div><div><br></div><div>Should i push the SVGs to lttng git repo at this point?</div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div>Met vriendelijke groet,</div><div>Randy Wijnants.</div><div><br>
</div><div><span style="font-family:arial;font-size:small">"The good part about UDP jokes is that i don't have to worry if you get it or not"</span><br></div></div></div>
<br><br><div class="gmail_quote">On 27 May 2014 15:18, Thibault, Daniel <span dir="ltr"><<a href="mailto:Daniel.Thibault@drdc-rddc.gc.ca" target="_blank">Daniel.Thibault@drdc-rddc.gc.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">






<div lang="FR-CA" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><b><span lang="FR" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">De :</span></b><span lang="FR" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Randy Wijnants [mailto:<a href="mailto:randy@tty32.org" target="_blank">randy@tty32.org</a>]
<br>
<b>Envoyé :</b> 27 mai 2014 06:34<br>
<br>
<u></u><u></u></span></p>
<div><div class="">
<div>
<p class="MsoNormal"><span lang="EN-CA" style="color:#1f497d">> </span><span lang="EN-CA">Changed the dashed arrows into dotted arrows.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-CA" style="color:#1f497d">></span><span lang="EN-CA"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-CA" style="color:#1f497d">> </span><span lang="EN-CA">Is the arrow running from the lttng session daemon to liblttng-ust valid?<span style="color:#1f497d"><u></u><u></u></span></span></p>

<p class="MsoNormal"><span lang="EN-CA" style="color:#1f497d">></span><span lang="EN-CA"> Does the liblttng-ust always write to the shared memory buffer or only if the session daemon instructs it to (via which interface?)<u></u><u></u></span></p>

</div>
</div><div>
<p class="MsoNormal"><span lang="EN-CA" style="color:#1f497d">> </span><span lang="EN-CA">And what is the interface used between the session
<span style="color:#1f497d">a</span>n<span style="color:#1f497d">d</span> consumer daemon?<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-CA" style="color:#1f497d">></span><span lang="EN-CA"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-CA" style="color:#1f497d">> </span>New version: <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-CA" style="color:#1f497d">> </span><a href="http://--ESFSECEV-TY3011----------------------------" target="_blank">http://tty32.org/Logging%20configuration2.png</a><u></u><u></u></p>

</div>
<p class="MsoNormal"><span lang="EN-CA" style="color:#1f497d">></span><u></u> <u></u></p>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span lang="EN-CA" style="color:#1f497d">> </span><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Randy Wijnants.<u></u><u></u></span></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-CA" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">   Unless I’m mistaken, when a session daemon disables a channel, for instance, it asks liblttng-ust to turn off the
 immediate value test in the registered applications (each tracepoint entry is guarded by an immediate value test which is controlled by changing a single byte).  That’s the principle, anyway.  I haven’t actually followed this through the tangle of LTTng’s
 code.<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-CA" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">   Rest assured that if liblttng-ust writes to a channel’s buffer, it’s because the event was enabled at the time.<u></u><u></u></span></p>

<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-CA" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">   I know the consumer daemon(s) read(s) /run/lttng/lttng-session.pid (or $HOME/.lttng/lttng-session.pid) to reach
 the session daemon.  I think the session daemon uses the /run/lttng/ustconsumerd64 (or $HOME/.lttng/ustconsumerd64; 32-bit versions may also exist) socket to send commands to the consumer daemon(s).<u></u><u></u></span></p>

<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-CA" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">   About the only things the diagram is missing now are:<u></u><u></u></span></p>

<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-CA" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">* the lttng-relayd daemon (which completes the “Network destination / streaming” box);<u></u><u></u></span></p>

<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-CA" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">* the add-context command (easily put beside enable-channel and enable-event); and<u></u><u></u></span></p>

<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-CA" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">* the buffers-global / buffers-pid / buffers-uid alternative (could be put opposite the output TYPE at the Buffer’s
 top right).<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-CA" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">   Change:<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-CA" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">* “LTTv” into “LTTV”<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-CA" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">* “Eclipse” into “Eclipse TMF”<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-CA" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">* “tracefilesize” into “tracefile-size”<u></u><u></u></span></p>

<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-CA" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">* “commandline” into “command line”<u></u><u></u></span></p>
<div class="">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d">Daniel U. Thibault<br>
Protection des systèmes et contremesures (PSC) | Systems Protection & Countermeasures (SPC)<br>
Cyber sécurité pour les missions essentielles (CME) | Mission Critical Cyber Security (MCCS)<br>
R & D pour la défense Canada - Valcartier (RDDC Valcartier) | Defence R&D Canada - Valcartier (DRDC Valcartier)<br>
2459 route de la Bravoure<br>
Québec QC  G3J 1X5<br>
CANADA<br>
Vox</span><span style="font-size:10.5pt;font-family:Consolas;color:#1f497d"> </span><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d">: <a href="tel:%28418%29%20844-4000%20x4245" value="+14188444000" target="_blank">(418) 844-4000 x4245</a><br>

Fax</span><span style="font-size:10.5pt;font-family:Consolas;color:#1f497d"> </span><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d">: <a href="tel:%28418%29%20844-4538" value="+14188444538" target="_blank">(418) 844-4538</a><br>

</span><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d">NAC : </span>
<span lang="EN-CA" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><a href="http://www.travelgis.com/map.asp?addr=918V%20QSDJ" target="_blank"><span lang="FR-CA" style="font-size:10.0pt;font-family:"Courier New"">918V QSDJ</span></a></span><span lang="EN-CA" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">
</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><</span><u><span style="font-size:10.0pt;font-family:"Courier New";color:blue"><a href="http://www.travelgis.com/map.asp?addr=918V%20QSDJ" target="_blank">http://www.travelgis.com/map.asp?addr=918V%20QSDJ</a></span></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">></span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><br>

</span><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d">Gouvernement du Canada | Government of Canada<br>
</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><</span><span lang="EN-CA" style="font-size:10.0pt;font-family:"Courier New";color:blue"><a href="http://www.valcartier.drdc-rddc.gc.ca/" target="_blank"><span lang="FR-CA">http://www.valcartier.drdc-rddc.gc.ca/</span></a></span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">></span><span style="font-size:10.5pt;font-family:Consolas;color:#1f497d"><u></u><u></u></span></p>

</div></div>
</div>
</div>
</div>

</blockquote></div><br></div>