<div dir="ltr"><div>Hello,<br><br>I use lttng-2.5 and linux-3.8.13. When I try to add context with several performance counters after start program with tracepoints, I get the following error:<br><br>> app_with_lttng &  // { tracepoint(test, test, 1); sleep(1000); }<br>[1] 19297<br><br>> lttng destroy -a<br>No session found, nothing to do.<br><br>> lttng -vvv create test<br>DEBUG3 - 14:54:42.713573 [19313/19313]: URI string: file:///home/alexgri/lttng-traces/test-20140930-145442 (in uri_parse() at uri.c:293)<br>DEBUG3 - 14:54:42.713607 [19313/19313]: URI file destination: /home/alexgri/lttng-traces/test-20140930-145442 (in uri_parse() at uri.c:330)<br>DEBUG3 - 14:54:42.713616 [19313/19313]: URI dtype: 3, proto: 0, host: , subdir: , ctrl: 0, data: 0 (in uri_parse() at uri.c:507)<br>DEBUG1 - 14:54:42.713667 [19313/19313]: LSM cmd type : 8 (in send_session_msg() at lttng-ctl.c:131)<br>Session test created.<br>Traces will be written in /home/alexgri/lttng-traces/test-20140930-145442<br>DEBUG1 - 14:54:42.715819 [19313/19313]: Init config session in /home/alexgri (in config_init() at conf.c:295)<br><br>> lttng -vvv add-context -u -t vpid -t perf:thread:cpu-cycles -t perf:thread:instructions -t perf:thread:cache-misses -s test<br>DEBUG1 - 14:54:52.124745 [19316/19316]: Adding context... (in add_context() at commands/add_context.c:600)<br>DEBUG1 - 14:54:52.133393 [19316/19316]: LSM cmd type : 0 (in send_session_msg() at lttng-ctl.c:131)<br>UST context vpid added to all channels<br>DEBUG1 - 14:54:52.153445 [19316/19316]: Adding context... (in add_context() at commands/add_context.c:600)<br>DEBUG1 - 14:54:52.153499 [19316/19316]: LSM cmd type : 0 (in send_session_msg() at lttng-ctl.c:131)<br>UST context perf:thread:cpu-cycles added to all channels<br>DEBUG1 - 14:54:52.154356 [19316/19316]: Adding context... (in add_context() at commands/add_context.c:600)<br>DEBUG1 - 14:54:52.154392 [19316/19316]: LSM cmd type : 0 (in send_session_msg() at lttng-ctl.c:131)<br>Error: perf:thread:instructions: UST context already exist<br>DEBUG1 - 14:54:52.154469 [19316/19316]: Adding context... (in add_context() at commands/add_context.c:600)<br>DEBUG1 - 14:54:52.154525 [19316/19316]: LSM cmd type : 0 (in send_session_msg() at lttng-ctl.c:131)<br>Error: perf:thread:cache-misses: UST context already exist<br>Warning: Some command(s) went wrong<br>DEBUG1 - 14:54:52.154620 [19316/19316]: Clean exit (in clean_exit() at lttng.c:167)<br><br>'lttng-sessiond -vvv' logs in attachment</div><div><br>Thanks,<br>Alexander<div></div></div></div>