[lttng-dev] no trace data are collected for UST

David Goulet dgoulet at efficios.com
Mon Dec 9 15:17:06 EST 2013


On 08 Dec (10:33:09), zhenyu.ren wrote:
> Hi, lttng-dev     All seems well but no trace data are produced for UST. (1) link static lib(.a) into target program   g++ -o target ... provider.o xx.o ... -ldl -llttng-ust -lurcu-cds -lurcu-bp -llttng-ust-tracepoint(2) run target and lttng-sessiond(root&uid)/consumerd etc....$lttng-startAvailable tracing sessions:  1) auto-20131208-100815 (/home/admin/lttng-traces/auto-20131208-100815) [active]Use lttng list <session_name> for more details$lttng list -uUST events:-------------
> PID: 42025 - Name: /home/admin/target      target_ioitem:AddIOWorkItem (loglevel: TRACE_DEBUG_LINE (13)) (type: tracepoint)$lttng list auto-20131208-100815Tracing session auto-20131208-100815: [active]    Trace path: /home/admin/lttng-traces/auto-20131208-100815
> === Domain: UST global ===
> Buffer type: per UID
> Channels:-------------- channel0: [enabled]
>     Attributes:      overwrite mode: 0      subbufers size: 131072      number of subbufers: 4      switch timer interval: 0      read timer interval: 0      output: mmap()
>     Events:      * (type: tracepoint) [enabled]
> $lttng stopWaiting for data availability......Tracing stopped for session auto-20131208-100815$ls -l ~/lttng-traces/auto-20131208-100815/ust/uid/505/64-bit/total 100-rw-rw---- 1 admin admin 4096 Dec  8 10:11 channel0_0-rw-rw---- 1 admin admin 4096 Dec  8 10:11 channel0_1-rw-rw---- 1 admin admin 4096 Dec  8 10:11 channel0_10-rw-rw---- 1 admin admin 4096 Dec  8 10:11 channel0_11...-rw-rw---- 1 admin admin 4096 Dec  8 10:11 metadata$babeltrace ~/lttng-traces/auto-20131208-100815/"empty result"   I am very sure tracepoint target_ioitem:AddIOWorkItem has been running since printf log at the next line does work. Why lttng list -u shows me  tracepoint target_ioitem:AddIOWorkItem there,but no trace data are produced for ust?Thankszhenyu.ren

Hey!

Can you provide a code snippet that reproduce this issue along with the
exact list of commands you used.

(Also, please try to avoid the weird text wrapping ;)

Thanks!
David

> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: Digital signature
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20131209/57d3a1e5/attachment.pgp>


More information about the lttng-dev mailing list