<div dir="ltr"><div dir="ltr">Can you start the lttng-sessiond in verbose mode using the following command:</div><div>> lttng-sessiond -vvv</div><div>and then do the lttng create, start of application and lttng view on another console.</div><div><br></div><div>Then copy the output of the sessiond on <a href="https://pastebin.com/">https://pastebin.com/</a> and send us the link.<br></div><div><br></div><div>Thank you,</div><div>Francis</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le ven. 15 févr. 2019, à 14 h 36, Mosleh Uddin <<a href="mailto:mosleh1235@gmail.com">mosleh1235@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">That's correct, I don't enable any events or do: lttng start.<div>Here is some snapshots of starting everything up, followed by starting my application.</div><div><div><img src="cid:ii_js6g2ray1" alt="image.png" width="447" height="112"><br></div></div><div><br><div>Here are the outputs for the commands:</div><div><br></div><div><div><img src="cid:ii_js6fxufp0" alt="image.png" width="562" height="42"><br></div></div><div><br></div><div><div><div><div><img src="cid:ii_js6g5bt54" alt="image.png" width="510" height="127"><br></div></div></div></div></div><div><br></div><div><div><img src="cid:ii_js6g9qc36" alt="image.png" width="431" height="57"><br></div></div><div><br></div><div>Note that even though the session is inactive, when a trace event occurs in my application it is being recorded in the appropriate directory:</div><div><div><br></div></div><div><div><img src="cid:ii_js6gbonl8" alt="image.png" width="197" height="35"><br></div></div><div><br></div><div>Also maybe important, the system has root only user. Would having the application belonging to a different user and trying to run as root cause these kinds of complications? I did notice when testing on a raspberry pi that running an application as a root user would mean running sessions as root user as well.</div><div><br></div><div>Thanks,</div><div>Mosleh</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 15, 2019 at 11:55 AM Francis Deslauriers <<a href="mailto:francis.deslauriers@efficios.com" target="_blank">francis.deslauriers@efficios.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Adding back lttng-dev mailing list.<br>
<br>
So you don't even run a lttng-enable-event command?<br>
That's odd.<br>
<br>
Can you send us the output of the following commands:<br>
Is it possible that there are other lttng-sessiond daemons running on<br>
the machine?<br>
> ps aux | grep "lttng-sessiond"<br>
Verify if there are other active tracing sessions:<br>
> lttng list<br>
Check the details of the current session:<br>
> lttng status<br>
<br>
Thank you,<br>
Francis<br>
<br>
Le ven. 15 févr. 2019, à 11 h 29, Mosleh Uddin <<a href="mailto:mosleh1235@gmail.com" target="_blank">mosleh1235@gmail.com</a>> a écrit :<br>
><br>
> Hi Francis,<br>
><br>
> Thank you for the quick response.<br>
> Just to clear things up, my application is running when I run that command.<br>
><br>
> The commands I am running are:<br>
> > lttng-sessiond -d<br>
> > lttng create my-sess --live<br>
> After this command I start my application. If I then do the command:<br>
> > lttng view<br>
> I will see the tracepoints in the application in the terminal even though I have not done: lttng start.<br>
><br>
> I thought it was strange that I cannot find my application in the: lttng list command under any domain.<br>
> Also the reason I start my application after creating a session is because the system automatically starts the application using systemd,<br>
> in order to get tracing data at all I have to manually stop the application and start it again after creating a session.<br>
><br>
> Thanks again for any help,<br>
> Mosleh<br>
><br>
> On Fri, Feb 15, 2019 at 10:32 AM Francis Deslauriers <<a href="mailto:francis.deslauriers@efficios.com" target="_blank">francis.deslauriers@efficios.com</a>> wrote:<br>
>><br>
>> Hi Mosleh,<br>
>> It's expected to not see any event when running lttng list -u if no<br>
>> lttng-ust instrumented applications are running.<br>
>><br>
>> What are the exact lttng commands you are running to see those<br>
>> unexpected events?<br>
>><br>
>> Thank you,<br>
>> Francis<br>
>><br>
>><br>
>> Le ven. 15 févr. 2019, à 10 h 08, Mosleh Uddin <<a href="mailto:mosleh1235@gmail.com" target="_blank">mosleh1235@gmail.com</a>> a écrit :<br>
>> ><br>
>> > Hello,<br>
>> ><br>
>> > I am having a strange issue with my current application. For some context, I have integrated LTTng into a Yocto build and put custom trace points in my embedded system application. Once I load the built image onto my system and start a session daemon, I try to list all available userspace events (using lttng list -u), but no events show up.<br>
>> ><br>
>> > The strange occurrence is when I create a session (lltng create my-sess) and not start tracing the trace events will display on the screen regardless (when starting session in live mode with lttng view). I was wondering if anyone has any insight on this issue I am having.<br>
>> ><br>
>> > Thanks for any assistance,<br>
>> > Mosleh<br>
>> > _______________________________________________<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" rel="noreferrer" target="_blank">https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev</a><br>
>><br>
>> --<br>
>> Francis Deslauriers<br>
>> Computer Engineer<br>
>> EfficiOS inc.<br>
<br>
<br>
<br>
-- <br>
Francis Deslauriers<br>
Computer Engineer<br>
EfficiOS inc.<br>
</blockquote></div>
_______________________________________________<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" rel="noreferrer" target="_blank">https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div>Francis Deslauriers</div><div dir="ltr">Computer Engineer<div>EfficiOS inc.</div></div></div></div></div></div></div>