<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div><br data-mce-bogus="1"></div><div><span id="zwchr" data-marker="__DIVIDER__">----- On Sep 6, 2019, at 4:42 PM, Rana Shakti singh <rana94302@gmail.com> wrote:<br></span></div><div data-marker="__QUOTED_TEXT__"><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="auto"><div dir="auto" class="elided-text"><div dir="ltr">Hi,<br></div><div dir="ltr"><p>I am enabling event using following steps but i am getting following error:<br>
</p>
<p>1.$ lttng create my-test-trace<br>
Spawning a session daemon</p></div></div></div></blockquote><div><br></div><div>This command run as user is launching a lttng-sessiond as that particular user, which is<br data-mce-bogus="1"></div><div>not allowed to do any kernel tracing.<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>You'll want to kill that daemon, and launch lttng-sessiond separately as root instead.<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Thanks,<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Mathieu<br data-mce-bogus="1"></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="auto"><div dir="auto" class="elided-text"><div dir="ltr"><p><br>
Session my-test-trace created.<br>
Traces will be output to /home/rana/lttng-traces/my-test-trace-20190905-220127<br>
<br>
</p>
<p>2.sudo lttng enable-channel --kernel --subbuf-size=8M chan1<br>
Error: Channel chan1: No session daemon is available (session my-session)<br>
<br>
</p>
<p>3.$ lttng enable-event --session=my-test-trace --kernel --channel=channel0 sched_switch<br>
Error: Event sched_switch: No session daemon is available (channel channel0, session my-test-trace)<br>
</p>
<p>Your suggestion will be appreciated</p></div>
</div></div>
<br>_______________________________________________<br>lttng-dev mailing list<br>lttng-dev@lists.lttng.org<br>https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev<br></blockquote></div><div><br></div><div data-marker="__SIG_POST__">-- <br></div><div>Mathieu Desnoyers<br>EfficiOS Inc.<br>http://www.efficios.com</div></div></body></html>