<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div><br></div><div><br></div><span id="zwchr" data-marker="__DIVIDER__">----- On Nov 17, 2015, at 4:46 PM, Hani Nemati <hani_nemati@yahoo.com> wrote:<br></span><div data-marker="__QUOTED_TEXT__"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><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></blockquote><div><br></div><div>It is possible that your architecture does not expose this counter to perf.<br data-mce-bogus="1"></div><div>Did you try using this PMC with the perf tool ?<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Thanks,<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Mathieu<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:16px"><div id="yui_3_16_0_1_1447772874730_12155" class="signature"><div id="yui_3_16_0_1_1447772874730_12154"><<<<<<<   <span style="color: #ff0000;" data-mce-style="color: #ff0000;" color="#ff0000"> /-/ /\ /\/ / /\/ <em>E</em> /\/\ /\ <em>T</em> /</span>    >>>>>>>></div></div></div><br>_______________________________________________<br>lttng-dev mailing list<br>lttng-dev@lists.lttng.org<br>http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev<br></blockquote></div><br><div data-marker="__SIG_POST__">-- <br></div><div>Mathieu Desnoyers<br>EfficiOS Inc.<br>http://www.efficios.com</div></div></body></html>