<html><head></head><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:16px">There is no PERF symbolic name for LLC-load-misses but I can use raw identifier to find out Number of code read, data read that miss the LLC. Here is the command that I used.<br class="" id="yui_3_16_0_1_1447797278790_35613"> <br class="" id="yui_3_16_0_1_1447797278790_35615">#perf stat -e r0109 sleep 2<br class="" id="yui_3_16_0_1_1447797278790_35617"> Performance counter stats for 'sleep 2':<br class="" id="yui_3_16_0_1_1447797278790_35619"><br class="" id="yui_3_16_0_1_1447797278790_35621"> 117 r0109 <br class="" id="yui_3_16_0_1_1447797278790_35623"><br class="" id="yui_3_16_0_1_1447797278790_35625">Do you have any idea why I don't have the symbolic name? Is there any way to give raw identifier instead of perf:cpu:LLC-load-misses? <br class="" id="yui_3_16_0_1_1447797278790_35627"><br class="" id="yui_3_16_0_1_1447797278790_35629"><br class="" id="yui_3_16_0_1_1447797278790_35631"><br class="" id="yui_3_16_0_1_1447797278790_35633"><div id="yui_3_16_0_1_1447797278790_35843" dir="ltr"><br></div><br><div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div style="font-family: times new roman, new york, times, serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font face="Arial" size="2"> On Wednesday, November 18, 2015 9:45 AM, Mathieu Desnoyers <mathieu.desnoyers@efficios.com> wrote:<br> </font> </div> <br><br> <div class="y_msg_container"><div id="yiv3446413485"><div><div style="font-family:arial, helvetica, sans-serif;font-size:12pt;color:#000000;"><div><br clear="none"></div><div><br clear="none"></div><span id="yiv3446413485zwchr">----- On Nov 17, 2015, at 4:46 PM, Hani Nemati <hani_nemati@yahoo.com> wrote:<br clear="none"></span><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 dir="ltr" id="yiv3446413485yui_3_16_0_1_1447772874730_12112"><span id="yiv3446413485yui_3_16_0_1_1447772874730_12163">Hi, <br class="yiv3446413485" id="yiv3446413485yui_3_16_0_1_1447772874730_12165" clear="none">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="yiv3446413485" id="yiv3446413485yui_3_16_0_1_1447772874730_12167" clear="none">Error: perf:cpu:LLC-load-misses: Add kernel context failed<br class="yiv3446413485" id="yiv3446413485yui_3_16_0_1_1447772874730_12169" clear="none">Warning: Some command(s) went wrong<br class="yiv3446413485" id="yiv3446413485yui_3_16_0_1_1447772874730_12171" clear="none"><br class="yiv3446413485" id="yiv3446413485yui_3_16_0_1_1447772874730_12173" clear="none">Here is result of "uname -a" on my computer: <br class="yiv3446413485" id="yiv3446413485yui_3_16_0_1_1447772874730_12175" clear="none">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="yiv3446413485" id="yiv3446413485yui_3_16_0_1_1447772874730_12177" clear="none"><br class="yiv3446413485" id="yiv3446413485yui_3_16_0_1_1447772874730_12179" clear="none"><br class="yiv3446413485" id="yiv3446413485yui_3_16_0_1_1447772874730_12181" clear="none">Here is the command that I used: <br class="yiv3446413485" id="yiv3446413485yui_3_16_0_1_1447772874730_12183" clear="none">#lttng enable-channel -k test<br class="yiv3446413485" id="yiv3446413485yui_3_16_0_1_1447772874730_12185" clear="none">#Kernel channel test enabled for session hh<br class="yiv3446413485" id="yiv3446413485yui_3_16_0_1_1447772874730_12187" clear="none">#lttng add-context -k -t perf:cpu:LLC-load-misses -c test<br class="yiv3446413485" id="yiv3446413485yui_3_16_0_1_1447772874730_12189" clear="none">Error: perf:cpu:LLC-load-misses: Add kernel context failed<br class="yiv3446413485" id="yiv3446413485yui_3_16_0_1_1447772874730_12191" clear="none">Warning: Some command(s) went wrong<br class="yiv3446413485" id="yiv3446413485yui_3_16_0_1_1447772874730_12193" clear="none"><br class="yiv3446413485" id="yiv3446413485yui_3_16_0_1_1447772874730_12195" clear="none"><br class="yiv3446413485" id="yiv3446413485yui_3_16_0_1_1447772874730_12197" clear="none">I also tried it on other machines. </span></div></div></blockquote><div><br clear="none"></div><div>It is possible that your architecture does not expose this counter to perf.<br clear="none"></div><div>Did you try using this PMC with the perf tool ?<br clear="none"></div><div><br clear="none"></div><div>Thanks,<br clear="none"></div><div><br clear="none"></div><div>Mathieu<div class="yiv3446413485yqt4842675108" id="yiv3446413485yqtfd64414"><br clear="none"></div></div><div class="yiv3446413485yqt4842675108" id="yiv3446413485yqtfd37008"><div><br clear="none"></div></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 class="yiv3446413485signature" id="yiv3446413485yui_3_16_0_1_1447772874730_12155"><div id="yiv3446413485yui_3_16_0_1_1447772874730_12154"><div class="yiv3446413485yqt4842675108" id="yiv3446413485yqtfd96110"><<<<<<< </div><span style="color:#ff0000;"><div class="yiv3446413485yqt4842675108" id="yiv3446413485yqtfd53272"> /-/ /\ /\/ / /\/ <em>E</em> /\/\ /\ <em>T</em></div> /</span> >>>>>>>></div></div></div><br clear="none">_______________________________________________<br clear="none">lttng-dev mailing list<br clear="none">lttng-dev@lists.lttng.org<br clear="none">http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev<br clear="none"></blockquote></div><br clear="none"><div>-- <br clear="none"></div><div>Mathieu Desnoyers<br clear="none">EfficiOS Inc.<br clear="none">http://www.efficios.com</div></div></div></div><br><br></div> </div> </div> </div></div></body></html>