<div dir="ltr"><pre style="font-family:courier,'courier new',monospace;font-size:14px;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);line-height:19.6000003814697px">Hi!
I use lttng-2.5.0 and linux-3.8.13. </pre><pre style="font-family:courier,'courier new',monospace;font-size:14px;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);line-height:19.6000003814697px"><br></pre><pre style="font-family:courier,'courier new',monospace;font-size:14px;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);line-height:19.6000003814697px">When I try to add context for performance counters I get the following error:</pre><pre style="font-family:courier,'courier new',monospace;font-size:14px;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);line-height:19.6000003814697px"><br></pre><pre style="word-wrap:break-word;margin-top:0px;margin-bottom:0px"><font color="#000000" face="courier, courier new, monospace"><span style="font-size:14px;line-height:19.6000003814697px;white-space:pre-wrap">> 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</span></font></pre><pre style="word-wrap:break-word;margin-top:0px;margin-bottom:0px"><font color="#000000" face="courier, courier new, monospace"><span style="font-size:14px;line-height:19.6000003814697px;white-space:pre-wrap"><br></span></font></pre><pre style="word-wrap:break-word;margin-top:0px;margin-bottom:0px"><font color="#000000" face="courier, courier new, monospace"><span style="font-size:14px;line-height:19.6000003814697px;white-space:pre-wrap">If I kill lttng-sessiond:</span></font></pre><pre style="word-wrap:break-word;margin-top:0px;margin-bottom:0px"><font color="#000000" face="courier, courier new, monospace"><span style="font-size:14px;line-height:19.6000003814697px;white-space:pre-wrap"><br></span></font></pre><pre style="word-wrap:break-word;margin-top:0px;margin-bottom:0px"><font color="#000000" face="courier, courier new, monospace"><span style="font-size:14px;line-height:19.6000003814697px;white-space:pre-wrap">> 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<br></span></font></pre><pre style="word-wrap:break-word;margin-top:0px;margin-bottom:0px"><font color="#000000" face="courier, courier new, monospace"><span style="font-size:14px;line-height:19.6000003814697px;white-space:pre-wrap"><br></span></font></pre><pre style="word-wrap:break-word;margin-top:0px;margin-bottom:0px"><font color="#000000" face="courier, courier new, monospace"><span style="font-size:14px;line-height:19.6000003814697px;white-space:pre-wrap">and run this command</span></font><span style="font-size:14px;line-height:19.6000003814697px;white-space:pre-wrap;color:rgb(0,0,0);font-family:courier,'courier new',monospace"> n times (or run program with lttng tracepoints) ....</span></pre><pre style="word-wrap:break-word;margin-top:0px;margin-bottom:0px"><font color="#000000" face="courier, courier new, monospace"><span style="font-size:14px;line-height:19.6000003814697px;white-space:pre-wrap"><br></span></font></pre><pre style="word-wrap:break-word;margin-top:0px;margin-bottom:0px"><font color="#000000" face="courier, courier new, monospace"><span style="font-size:14px;line-height:19.6000003814697px;white-space:pre-wrap">> 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<br></span></font></pre><pre style="word-wrap:break-word;margin-top:0px;margin-bottom:0px"><font color="#000000" face="courier, courier new, monospace"><span style="font-size:14px;line-height:19.6000003814697px;white-space:pre-wrap"><br></span></font></pre><pre style="word-wrap:break-word;margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,0);font-family:courier,'courier new',monospace;font-size:14px;line-height:19.6000003814697px;white-space:pre-wrap">thanks, </span><font color="#000000" face="courier, courier new, monospace"><span style="font-size:14px;line-height:19.6000003814697px;white-space:pre-wrap">Alex</span></font></pre></div>