[lttng-dev] lttng start error

Jérémie Galarneau jeremie.galarneau at efficios.com
Mon Jun 3 22:05:56 EDT 2013


Hi Zeng,

Just tried the 2.0 release on a Ubuntu-12.04 VM and I could not
reproduce your problem. Any chance you have installed different
versions of LTTng (either built from source or from your package
manager)?

root at ubuntu1204-32:/home/jgalar# sudo lttng create
Spawning a session daemon
Warning: No tracing group detected
Session auto-20130603-220050 created.
Traces will be written in /root/lttng-traces/auto-20130603-220050
root at ubuntu1204-32:/home/jgalar# sudo lttng enable-event -k -a
All kernel events are enabled in channel channel0
root at ubuntu1204-32:/home/jgalar# sudo lttng start
Tracing started for session auto-20130603-220050
root at ubuntu1204-32:/home/jgalar# sudo lttng stop
Tracing stopped for session auto-20130603-220050

That produces a readable trace here.

Regards,
Jérémie

On Thu, May 30, 2013 at 3:05 PM, Zheng Da <zhengda1936 at gmail.com> wrote:
> Hello,
>
> I built lttng-modules-2.0.6, lttng-tools-2.0.5 and lttng-ust-2.0.6.
>
> Best,
> Da
>
> On Thu, May 30, 2013 at 1:14 PM, Jérémie Galarneau
> <jeremie.galarneau at efficios.com> wrote:
>> On Thu, May 30, 2013 at 12:32 PM, Zheng Da <zhengda1936 at gmail.com> wrote:
>>> Hello,
>>>
>>> I just started to use lttng. I use Ubuntu 12.04 and the kernel version
>>> 3.8.12. I use a customized kernel, so the lttng package in ubuntu
>>> can't be installed correctly. I built lttng 2.0 myself.
>>
>> Did you build only the lttng-modules or the complete toolchain
>> (lttng-tools, lttng-ust, lttng-modules)? Which versions of the
>> different packages are you using?
>>
>> Thanks,
>> Jérémie
>>
>>>
>>> Then I followed the steps in https://lttng.org/quickstart. When I run
>>> lttng start, I got the errors:
>>> root at ubuntu:~# lttng start
>>> PERROR: sendmsg: Bad file descriptor [in lttcomm_send_unix_sock() at
>>> sessiond-comm.c:311]
>>> PERROR: send consumer channel: Bad file descriptor [in
>>> send_kconsumer_session_streams() at main.c:636]
>>> PERROR: ioctl start session: No buffer space available [in
>>> kernel_start_session() at kernel.c:397]
>>> Error: Starting kernel trace failed
>>>
>>> Someone said in the mailing list that this problem may have something
>>> to do with memory limit. But it shouldn't be my case as my machine has
>>> 512GB memory.
>>>
>>> Can anyone help me troubleshoot the problem?
>>>
>>> Thanks,
>>> Da
>>>
>>> _______________________________________________
>>> lttng-dev mailing list
>>> lttng-dev at lists.lttng.org
>>> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>>
>>
>>
>> --
>> Jérémie Galarneau
>> EfficiOS Inc.
>> http://www.efficios.com



-- 
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com



More information about the lttng-dev mailing list