<div dir="ltr"><div><div><div><div>Hi <span class="" style="" id=":504.1" tabindex="-1">Mathieu</span>,<br><br></div><div>Here are the answers to your questions. Let me know if there is any more info that could help.<br></div><div>-------------------------------------------------------------------------------------------------<br>Commands:<br></div>1- <span class="" style="" id=":504.2" tabindex="-1">lttng</span> create SESSION -o PATH<br></div>2- <span class="" style="" id=":504.3" tabindex="-1">lttng</span> enable-channel --<span class="" style="" id=":504.4" tabindex="-1">userspace</span> --<span class="" style="" id=":504.5" tabindex="-1">num</span>-<span class="" style="" id=":504.6" tabindex="-1">subbuf</span>={1,2} --<span class="" style="" id=":504.7" tabindex="-1">subbuf</span>-size=256M --buffers-<span class="" style="" id=":504.8" tabindex="-1">uid</span> --session=SESSION my-channel<br></div>3- <span class="" style="" id=":504.9" tabindex="-1">lttng</span> enable-event --<span class="" style="" id=":504.10" tabindex="-1">userspace</span> EVENT-1 --channel=my-channel<br></div><div> <span class="" style="" id=":504.11" tabindex="-1">lttng</span> enable-event --<span class="" style="" id=":504.12" tabindex="-1">userspace</span> EVENT-2 --channel=my-channel<br> .....<br></div><div>4- <span class="" style="" id=":504.13" tabindex="-1">lttng</span> add-context -u -t CONTEXT-1 --channel=my-channel<br></div><div> <span class="" style="" id=":504.14" tabindex="-1">lttng</span> add-context -u -t CONTEXT-2 --channel=my-channel<br> ....<br></div><div>5- <span class="" style="" id=":504.15" tabindex="-1">lttng</span> start SESSION<br></div><div>6- <span class="" style="" id=":504.16" tabindex="-1">LD</span>_<span class="" style="" id=":504.17" tabindex="-1">PRELOAD</span>=/<span class="" style="" id=":504.18" tabindex="-1">usr</span>/local/lib/<span class="" style="" id=":504.19" tabindex="-1">liblttng</span>-<span class="" style="" id=":504.20" tabindex="-1">ust</span>-<span class="" style="" id=":504.21" tabindex="-1">pthread</span>-wrapper.so RUN-COMMAND<br></div><div>7- <span class="" style="" id=":504.22" tabindex="-1">lttng</span> stop SESSION<br></div><div>8- <span class="" style="" id=":504.23" tabindex="-1">lttng</span> destroy SESSION<br>-------------------------------------------------------------------------------------------------<br></div><div>Here is a link to <span class="" style="" id=":504.24" tabindex="-1">github</span> containing the version I am using with the modification I have in the <span class="" style="" id=":504.25" tabindex="-1">pthreads</span> wrapper<br>https://<span class="" style="" id=":504.26" tabindex="-1">github</span>.com/<span class="" style="" id=":504.27" tabindex="-1">ShehabElsayed</span>/<span class="" style="" id=":504.28" tabindex="-1">LTTng</span>_debugging<br>-------------------------------------------------------------------------------------------------<br></div><div>I enabled the session daemon using (<span class="" style="" id=":504.29" tabindex="-1">lttng</span>-<span class="" style="" id=":504.30" tabindex="-1">sessiond</span> --<span class="" style="" id=":504.31" tabindex="-1">daemonize</span> -<span class="" style="" id=":504.32" tabindex="-1">vvv</span> --verbose-consumer). I have attached 3 files:<br></div><div>1- Output from the previous command<br></div><div>2- Output for 1,256M<br></div><div>3- Output for 2,256M<br></div><div>-------------------------------------------------------------------------------------------------<br></div><div>Running (<span class="" style="" id=":504.33" tabindex="-1">df</span> -h) shows that I have 3.5G available on /<span class="" style="" id=":504.34" tabindex="-1">dev</span>/<span class="" style="" id=":504.35" tabindex="-1">shm</span><br></div><div class="gmail_extra">-------------------------------------------------------------------------------------------------<br><br></div><div class="gmail_extra">Best Regards,<br></div><div class="gmail_extra"><span class="" style="" id=":504.36" tabindex="-1">Shehab</span><br><br><br></div><div class="gmail_extra"><div class="gmail_quote">On Thu, May 10, 2018 at 3:59 PM, <span class="" style="" id=":504.37" tabindex="-1">Mathieu</span> <span class="" style="" id=":504.38" tabindex="-1">Desnoyers</span> <span dir="ltr"><<a href="mailto:mathieu.desnoyers@efficios.com" target="_blank"><span class="" style="" id=":504.39" tabindex="-1">mathieu</span>.<span class="" style="" id=":504.40" tabindex="-1">desnoyers</span>@<span class="" style="" id=":504.41" tabindex="-1">efficios</span>.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:arial,helvetica,sans-serif;font-size:12pt;color:#000000"><span class=""><div><span id="m_2062995095787469132zwchr">----- On May 10, 2018, at 2:51 PM, Shehab Elsayed <<a href="mailto:shehabyomn@gmail.com" target="_blank">shehabyomn@gmail.com</a>> wrote:<br></span></div></span><div><span class=""><blockquote style="border-left:2px solid #1010ff;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt"><div dir="ltr"><div><div><div><div>Hi All,<br><br></div>I am running into a problem with creating a custom channel. It seems that once the total size of sub-buffers hits 512M no events are being generated.<br><br></div>I tried creating a channel with 2 sub-buffers, 256M each, but when I check the generated traces with <span id="m_2062995095787469132:4ng.1">babeltrace</span>, it complains that there are no valid traces. The same problem happens if I use a single 512M sub-buffer.<br><br></div>However, If I use only 1 sub-buffer of size 256M, a trace is generated but some events are discarded (which I am really trying to avoid).<br><br></div><div>I have enabled <span id="m_2062995095787469132:4ng.2">LTTNG</span>_<span id="m_2062995095787469132:4ng.3">UST</span>_DEBUG and attached the output for both 2,256M and 1,256M cases.<br><br></div><div>Any suggestions on how to solve this problem?</div></div></blockquote></span><div>Please provide detailed commands used to setup tracing for each case.<br></div><div><br></div><div>Which lttng components versions are you using ?<br></div><div><br></div><div>Please provide the verbose logs of lttng-sessiond and lttng-consumerd as well.<br></div><div><br></div><div>You should also double-check that you have enough space in /dev/shm.<br></div><div><br></div><div>Thanks,<br></div><div><br></div><div>Mathieu<br></div><div><br></div><div><br></div><div><br></div><blockquote style="border-left:2px solid #1010ff;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt"><div dir="ltr"><div><br><br></div><div>Thanks,<br></div><div><span id="m_2062995095787469132:4ng.4">Shehab</span><br></div><div><br><br><br></div><br><div><br><br></div></div>
<br>______________________________<wbr>_________________<br>lttng-dev mailing list<br><a href="mailto:lttng-dev@lists.lttng.org" target="_blank">lttng-dev@lists.lttng.org</a><br><a href="https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev" target="_blank">https://lists.lttng.org/cgi-<wbr>bin/mailman/listinfo/lttng-dev</a><span class="HOEnZb"><font color="#888888"><br></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><div><br></div><div>-- <br></div><div>Mathieu Desnoyers<br>EfficiOS Inc.<br><a href="http://www.efficios.com" target="_blank">http://www.efficios.com</a></div></font></span></div></div></blockquote></div><br></div></div>