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@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@ubuntu1204-32:/home/jgalar# sudo lttng enable-event -k -a All kernel events are enabled in channel channel0 root@ubuntu1204-32:/home/jgalar# sudo lttng start Tracing started for session auto-20130603-220050 root@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 <[email protected]> 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 > <[email protected]> wrote: >> On Thu, May 30, 2013 at 12:32 PM, Zheng Da <[email protected]> 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@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 >>> [email protected] >>> 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 _______________________________________________ lttng-dev mailing list [email protected] http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
