<html><head></head><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:16px"><div dir="ltr" id="yui_3_16_0_1_1447772874730_12112"><span id="yui_3_16_0_1_1447772874730_12163">Hi, <br class="" id="yui_3_16_0_1_1447772874730_12165">I am trying to count last level cache misses by using lttng add-context command. I use add-context to add perf:cpu:LLC-load-misses to my channel but I see an error. There is no error for other perf events. Just two perf events including perf:cpu:LLC-load-misses and  perf:cpu:LLC-store-misses give me the following error:<br class="" id="yui_3_16_0_1_1447772874730_12167">Error: perf:cpu:LLC-load-misses: Add kernel context failed<br class="" id="yui_3_16_0_1_1447772874730_12169">Warning: Some command(s) went wrong<br class="" id="yui_3_16_0_1_1447772874730_12171"><br class="" id="yui_3_16_0_1_1447772874730_12173">Here is result of "uname -a" on my computer: <br class="" id="yui_3_16_0_1_1447772874730_12175">Linux nemati 3.16.0-51-generic #69~14.04.1-Ubuntu SMP Wed Oct 7 15:32:41 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux <br class="" id="yui_3_16_0_1_1447772874730_12177"><br class="" id="yui_3_16_0_1_1447772874730_12179"><br class="" id="yui_3_16_0_1_1447772874730_12181">Here is the command that I used: <br class="" id="yui_3_16_0_1_1447772874730_12183">#lttng enable-channel -k test<br class="" id="yui_3_16_0_1_1447772874730_12185">#Kernel channel test enabled for session hh<br class="" id="yui_3_16_0_1_1447772874730_12187">#lttng add-context -k -t perf:cpu:LLC-load-misses -c test<br class="" id="yui_3_16_0_1_1447772874730_12189">Error: perf:cpu:LLC-load-misses: Add kernel context failed<br class="" id="yui_3_16_0_1_1447772874730_12191">Warning: Some command(s) went wrong<br class="" id="yui_3_16_0_1_1447772874730_12193"><br class="" id="yui_3_16_0_1_1447772874730_12195"><br class="" id="yui_3_16_0_1_1447772874730_12197">I also tried it on other machines. </span></div><div id="yui_3_16_0_1_1447772874730_12113"> </div><div id="yui_3_16_0_1_1447772874730_12155" class="signature"><div id="yui_3_16_0_1_1447772874730_12154"><<<<<<<   <font color="#ff0000"> /-/ /\ /\/ / /\/ <em>E</em> /\/\ /\ <em>T</em> /</font>    >>>>>>>></div></div></div></body></html>