[lttng-dev] Problem with perf:thread in 2.5.0

Alexander Grigoryev grig0403 at gmail.com
Mon Sep 15 10:20:02 EDT 2014


Hi!

I use lttng-2.5.0 and linux-3.8.13.


When I try to add context for performance counters I get the following error:


> lttng create o ; lttng add-context -u  -t perf:thread:cache-references  -t perf:thread:cache-misses  -t perf:thread:bus-cycles  -t vpid -s o ; lttng destroy -a
Session o created.
Traces will be written in /home/alexgri/lttng-traces/o-20140915-155906
UST context perf:thread:cache-references added to all channels
Error: Context failed for channel channel0
Error: perf:thread:cache-misses: UST context already exist
Error: Context failed for channel channel0
Error: perf:thread:bus-cycles: UST context already exist
UST context vpid added to all channels
Warning: Some command(s) went wrong
Session o destroyed


If I kill lttng-sessiond:


> lttng create o ; lttng add-context -u  -t perf:thread:cache-references  -t perf:thread:cache-misses  -t perf:thread:bus-cycles  -t vpid -s o ; lttng destroy -a
Spawning a session daemon
PERROR - 15:59:01.250528 [13848/13856]: bind inet: Address already in
use (in lttcomm_bind_inet_sock() at inet.c:109)
Warning: Another session daemon is using this JUL port. JUL support
will be deactivated to prevent interfering with the tracing.
Session o created.
Traces will be written in /home/alexgri/lttng-traces/o-20140915-155901
UST context perf:thread:cache-references added to all channels
UST context perf:thread:cache-misses added to all channels
UST context perf:thread:bus-cycles added to all channels
UST context vpid added to all channels
Session o destroyed


and run this command n times (or run program with lttng tracepoints) ....


> lttng create o ; lttng add-context -u  -t perf:thread:cache-references  -t perf:thread:cache-misses  -t perf:thread:bus-cycles  -t vpid -s o ; lttng destroy -a
Session o created.
Traces will be written in /home/alexgri/lttng-traces/o-20140915-155906
UST context perf:thread:cache-references added to all channels
Error: Context failed for channel channel0
Error: perf:thread:cache-misses: UST context already exist
Error: Context failed for channel channel0
Error: perf:thread:bus-cycles: UST context already exist
UST context vpid added to all channels
Warning: Some command(s) went wrong
Session o destroyed


thanks, Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20140915/54aaa21e/attachment.html>


More information about the lttng-dev mailing list