<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>Hi,</div><div><br data-mce-bogus="1"></div><div>Passing raw pmc identifiers is not supported at the moment. This is a feature we<br data-mce-bogus="1"></div><div>would like to add to lttng next year.<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></div><div><br></div><div><span id="zwchr" data-marker="__DIVIDER__">----- On Nov 19, 2015, at 10:37 AM, Hani Nemati <hani_nemati@yahoo.com> wrote:<br></span></div><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 id="yui_3_16_0_1_1447880899551_31232"><br><span></span></div><div dir="ltr" id="yui_3_16_0_1_1447880899551_31331"><span class="" id="yui_3_16_0_1_1447880899551_31564">Hi </span><span id="yui_3_16_0_1_1447880899551_31564"><span class="" id="yui_3_16_0_1_1447880899551_31748">Mathieu</span>, <br></span></div><div id="yui_3_16_0_1_1447880899551_31394"><span id="yui_3_16_0_1_1447880899551_31393">LCC is last level cache and it is shared between CPU cores. Also, I was running several VMs in background. That's why I used sleep command. </span></div><div id="yui_3_16_0_1_1447880899551_31749"><span id="yui_3_16_0_1_1447880899551_31393">Based on Intel's manual r0109 is raw identifier for LCC-load-misses, <br></span></div><div dir="ltr" id="yui_3_16_0_1_1447880899551_31420"><span id="yui_3_16_0_1_1447880899551_31393">The question is how can I fix the problem since Lttng is using perf symbolic name. <br></span></div><div id="yui_3_16_0_1_1447880899551_31534" dir="ltr"><br><span id="yui_3_16_0_1_1447880899551_31393"></span></div><div id="yui_3_16_0_1_1447880899551_31535" dir="ltr"><span id="yui_3_16_0_1_1447880899551_31393">Thanks, <br></span></div><div id="yui_3_16_0_1_1447880899551_31560" dir="ltr"><span id="yui_3_16_0_1_1447880899551_31393">Hani </span></div><div id="yui_3_16_0_1_1447880899551_31561" class="qtdSeparateBR"> <br><br></div> <div style="display: block;" id="yui_3_16_0_1_1447880899551_31652" class="yahoo_quoted"> <div id="yui_3_16_0_1_1447880899551_31651" style="font-family: times new roman, new york, times, serif; font-size: 16px;"> <div id="yui_3_16_0_1_1447880899551_31650" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div id="yui_3_16_0_1_1447880899551_31649" dir="ltr"><span style="font-family: Arial; font-size: small;" data-mce-style="font-family: Arial; font-size: small;" id="yui_3_16_0_1_1447880899551_31648" face="Arial" size="2"> On Wednesday, November 18, 2015 3:19 PM, Hani Nemati <hani_nemati@yahoo.com> wrote:<br></span></div> <br><br> <div id="yui_3_16_0_1_1447880899551_31962" class="y_msg_container"><div id="yiv4671081710"><div id="yui_3_16_0_1_1447880899551_31961"><div id="yui_3_16_0_1_1447880899551_31960" 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="yiv4671081710" id="yiv4671081710yui_3_16_0_1_1447797278790_35613" clear="none"> <br class="yiv4671081710" id="yiv4671081710yui_3_16_0_1_1447797278790_35615" clear="none">#perf stat -e r0109 sleep 2<br class="yiv4671081710" id="yiv4671081710yui_3_16_0_1_1447797278790_35617" clear="none"> Performance counter stats for 'sleep 2':<br class="yiv4671081710" id="yiv4671081710yui_3_16_0_1_1447797278790_35619" clear="none"><br class="yiv4671081710" id="yiv4671081710yui_3_16_0_1_1447797278790_35621" clear="none"> 117 r0109 <br class="yiv4671081710" id="yiv4671081710yui_3_16_0_1_1447797278790_35623" clear="none"><br class="yiv4671081710" id="yiv4671081710yui_3_16_0_1_1447797278790_35625" clear="none">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="yiv4671081710" id="yiv4671081710yui_3_16_0_1_1447797278790_35627" clear="none"><br class="yiv4671081710" id="yiv4671081710yui_3_16_0_1_1447797278790_35629" clear="none"><br class="yiv4671081710" id="yiv4671081710yui_3_16_0_1_1447797278790_35631" clear="none"><br class="yiv4671081710" id="yiv4671081710yui_3_16_0_1_1447797278790_35633" clear="none"><div dir="ltr" id="yiv4671081710yui_3_16_0_1_1447797278790_35843"><br clear="none"></div><br clear="none"><div class="yiv4671081710qtdSeparateBR"><br clear="none"><br clear="none"></div><div class="yiv4671081710yqt9882023943" id="yiv4671081710yqt48910"><div class="yiv4671081710yahoo_quoted" style="display:block;"> <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"> <span style="font-family: Arial; font-size: small;" data-mce-style="font-family: Arial; font-size: small;" face="Arial" size="2"> On Wednesday, November 18, 2015 9:45 AM, Mathieu Desnoyers <mathieu.desnoyers@efficios.com> wrote:<br clear="none"> </span> </div> <br clear="none"><br clear="none"> <div class="yiv4671081710y_msg_container"><div id="yiv4671081710"><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="yiv4671081710zwchr">----- 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="yiv4671081710yui_3_16_0_1_1447772874730_12112"><span id="yiv4671081710yui_3_16_0_1_1447772874730_12163">Hi, <br class="yiv4671081710" id="yiv4671081710yui_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="yiv4671081710" id="yiv4671081710yui_3_16_0_1_1447772874730_12167" clear="none">Error: perf:cpu:LLC-load-misses: Add kernel context failed<br class="yiv4671081710" id="yiv4671081710yui_3_16_0_1_1447772874730_12169" clear="none">Warning: Some command(s) went wrong<br class="yiv4671081710" id="yiv4671081710yui_3_16_0_1_1447772874730_12171" clear="none"><br class="yiv4671081710" id="yiv4671081710yui_3_16_0_1_1447772874730_12173" clear="none">Here is result of "uname -a" on my computer: <br class="yiv4671081710" id="yiv4671081710yui_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="yiv4671081710" id="yiv4671081710yui_3_16_0_1_1447772874730_12177" clear="none"><br class="yiv4671081710" id="yiv4671081710yui_3_16_0_1_1447772874730_12179" clear="none"><br class="yiv4671081710" id="yiv4671081710yui_3_16_0_1_1447772874730_12181" clear="none">Here is the command that I used: <br class="yiv4671081710" id="yiv4671081710yui_3_16_0_1_1447772874730_12183" clear="none">#lttng enable-channel -k test<br class="yiv4671081710" id="yiv4671081710yui_3_16_0_1_1447772874730_12185" clear="none">#Kernel channel test enabled for session hh<br class="yiv4671081710" id="yiv4671081710yui_3_16_0_1_1447772874730_12187" clear="none">#lttng add-context -k -t perf:cpu:LLC-load-misses -c test<br class="yiv4671081710" id="yiv4671081710yui_3_16_0_1_1447772874730_12189" clear="none">Error: perf:cpu:LLC-load-misses: Add kernel context failed<br class="yiv4671081710" id="yiv4671081710yui_3_16_0_1_1447772874730_12191" clear="none">Warning: Some command(s) went wrong<br class="yiv4671081710" id="yiv4671081710yui_3_16_0_1_1447772874730_12193" clear="none"><br class="yiv4671081710" id="yiv4671081710yui_3_16_0_1_1447772874730_12195" clear="none"><br class="yiv4671081710" id="yiv4671081710yui_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="yiv4671081710yqt4842675108" id="yiv4671081710yqtfd64414"><br clear="none"></div></div><div class="yiv4671081710yqt4842675108" id="yiv4671081710yqtfd37008"><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="yiv4671081710signature" id="yiv4671081710yui_3_16_0_1_1447772874730_12155"><div id="yiv4671081710yui_3_16_0_1_1447772874730_12154"><div class="yiv4671081710yqt4842675108" id="yiv4671081710yqtfd96110"><<<<<<< </div><span style="color:#ff0000;"></span><div class="yiv4671081710yqt4842675108" id="yiv4671081710yqtfd53272"> /-/ /\ /\/ / /\/ <em>E</em> /\/\ /\ <em>T</em></div> / >>>>>>>></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 clear="none"><br clear="none"></div> </div> </div> </div></div></div></div></div><br><br></div> </div> </div> </div></div><br></blockquote></div><div><br></div><div data-marker="__SIG_POST__">-- <br></div><div>Mathieu Desnoyers<br>EfficiOS Inc.<br>http://www.efficios.com</div></div></body></html>