[lttng-dev] Getting started with UST

Yannick Brosseau yannick.brosseau at gmail.com
Sun May 26 09:10:46 EDT 2013


Hi,

Did you forgot to enable some event, for example:
lttng enable-event -u -a
(For all userspace events)

On 2013-05-26 08:51, Aryeh Weinreb wrote:
> Hi,
> I'm trying to get UST working for the first time on RHEL 6.4.
>
> I compiled and installed the following packages:
> userspace-rcu-0.7.6
> lttng-ust-2.1.2
> lttng-tools-2.0.5
> babeltrace-1.1.0
>
> When I ran the sample app in lttng-ust/examples I couldn't see any traces.
>
> # lttng create test_session
> Session test_session created.
> Traces will be written in /root/lttng-traces/test_session-20130526-071315
>
> # lttng start
> Tracing started for session test_session
>
> # cd /usr/local/share/doc/lttng-ust/examples/gen-tp/
>
> # make
> lttng-gen-tp -o sample_tracepoint.h sample_tracepoint.tp
> gcc  -c -o sample.o sample.c
> lttng-gen-tp -o sample_tracepoint.c sample_tracepoint.tp
> lttng-gen-tp -o sample_tracepoint.o sample_tracepoint.tp
> gcc -o sample sample.o sample_tracepoint.o -ldl -llttng-ust
> rm sample_tracepoint.c
>
> # ./sample
>
> # lttng stop
> Tracing stopped for session test_session
>
> # lttng view
> Trace directory: /root/lttng-traces/test_session-20130526-071315
>
> [error] Cannot open any trace for reading.
>
> [error] opening trace
> "/root/lttng-traces/test_session-20130526-071315" for reading.
>
> [error] none of the specified trace paths could be opened.
>
> # ls -l /root/lttng-traces/test_session-20130526-071315
> total 0
>
>
> What am I doing wrong? I attached the debug log from the lttng-sessiond.
>
> Thanks,
> Aryeh
>
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20130526/a4191f07/attachment.html>


More information about the lttng-dev mailing list