Re: [lttng-dev] No trace files are generated for UST

2013-12-09 Thread Thibault, Daniel
A first glance through the log reveals these possibly significant entries: DEBUG1 [15860/15996]: Sending response (size: 16, retcode: Unknown error code) (in thread_manage_clients() at main.c:3803) And later PERROR [16322/16322]: sendmsg: Broken pipe (in lttcomm_send_unix_sock() at

Re: [lttng-dev] No trace files are generated for UST

2013-12-09 Thread Manikandan Govindaswamy
Yes, with that LD_PRELOAD sample able to run. root@/tmp/lttng-build-root/bin # ./lttng create app Session app created. Traces will be written in /root/lttng-traces/app-20131206-174935 root@/tmp/lttng-build-root/bin # dmesg root@/tmp/lttng-build-root/bin # ./lttng enable-event -u -a All UST events

Re: [lttng-dev] No trace files are generated for UST

2013-12-09 Thread Manikandan Govindaswamy
The Lttng version installed is Dominus Vobiscum The lttng tools: 2.3.1 Lttng-ust 2.3.1 Lttng modules 2.3.4 And The session running is 28664 root 0:00 ./lttng-sessiond -vvv --consumerd64-path=/tmp/lttng-build-root/lib/lttng/libexec/lttng-consumerd 29027 root 0:00 lttng-consumerd

Re: [lttng-dev] No trace files are generated for UST

2013-12-09 Thread Manikandan Govindaswamy
Hi !, Thanks for your mail. I'm also able to run the easy-ust and generate the traces successfully if I create and run from an user not as root user. But the kernel traces are generated fine for even root user but for ust it runs fine only with non-root user in my case. And the behavior is

Re: [lttng-dev] No trace files are generated for UST

2013-12-09 Thread David Goulet
On 07 Dec (06:16:14), Manikandan Govindaswamy wrote: Please find the log for the --verbose-consumer attached. With the log file you provided, *no* application registered to the session daemon meaning probably that lttng-ust is either not called or not linked at all. By adding this in front, you

Re: [lttng-dev] No trace files are generated for UST

2013-12-06 Thread Thibault, Daniel
De : Manikandan Govindaswamy [mailto:ma...@vestas.com] Envoyé : 6 décembre 2013 04:49 Now I'm trying with ust examples : demo and easy-ust and I'm facing the same problem of no tracing is generated. Please find the sessiond log and the execution sequence as below for sample. I tried the

Re: [lttng-dev] No trace files are generated for UST

2013-12-06 Thread Thibault, Daniel
If: $ gcc -o sample sample.o tp.o -ldl -llttng-ust Fails with error: cannot find -llttng-ust, then do this instead: $ gcc -o sample sample.o tp.o -L/usr/local/lib -ldl -llttng-ust Daniel U. Thibault Protection des systèmes et contremesures (PSC) | Systems Protection Countermeasures (SPC)

Re: [lttng-dev] No trace files are generated for UST

2013-12-06 Thread Thibault, Daniel
As I'm using the custom image on x86 machine, i've kept the lib in /tmp/lttng-build-root/lib folder and this sample able to see the library as well. And the same way I able to create the trace files for kernel but not for ust. There were no dmesg as well. [...] root@/tmp # ldd sample

Re: [lttng-dev] No trace files are generated for UST

2013-12-06 Thread Thibault, Daniel
Yes, with that LD_PRELOAD sample able to run. root@/tmp/lttng-build-root/bin # ./lttng create app Session app created. Traces will be written in /root/lttng-traces/app-20131206-174935 root@/tmp/lttng-build-root/bin # dmesg root@/tmp/lttng-build-root/bin # ./lttng enable-event -u -a All UST

Re: [lttng-dev] No trace files are generated for UST

2013-12-06 Thread Thibault, Daniel
Interesting. I've managed to sort-of-reproduce the problem. If I run (from a user account which is NOT a tracing group member): [...] Then lttng correctly creates the trace folder in /home/username/lttng-traces/a-... when sample is run, but it remains empty. No ust sub-folder,

Re: [lttng-dev] No trace files are generated for UST

2013-12-06 Thread Jérémie Galarneau
Could you launch the session daemon in verbose mode and post the logs? lttng-sessiond -vvv --verbose-consumer On Fri, Dec 6, 2013 at 10:51 AM, Manikandan Govindaswamy ma...@vestas.com wrote: Yes, with that LD_PRELOAD sample able to run. root@/tmp/lttng-build-root/bin # ./lttng create app