Just one more point, the kernel implementation of &quot;perf&quot; is in arch/x86/kernel directory (just one of them), and grepping &quot;PERF_&quot; in arch/x86/kernel and arch/arm/kernel you can immediately tell the differences in the state of art of implementation of perf in the kernel.   For the my Sony Ericsson (this is not the latest kernel though, lazy to update), perf event is completely absent in the arch/arm/kernel directory.<div>
<br><div class="gmail_quote">On Sun, Jul 8, 2012 at 2:23 PM, Peter Teoh <span dir="ltr">&lt;<a href="mailto:htmldeveloper@gmail.com" target="_blank">htmldeveloper@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Sorry about the mistake.   Resending the answer again:<div><br></div><div><div class="im">I think it is not so simple.   For example, for my Sony Ericsson, and from here:<div><br></div></div><div><a href="http://developer.sonymobile.com/wp/2011/05/06/how-to-build-a-linux-kernel/" target="_blank">http://developer.sonymobile.com/wp/2011/05/06/how-to-build-a-linux-kernel/</a><br>

<br>I downloaded the kernel 4.0.2.A.0.42.tar.bz2 kernel, and from the semc_anzu_config file:</div><div><br></div><div><div>CONFIG_MMC_PERF_PROFILING=y</div></div><div><br></div><div>Other necessary configuration:</div><div>

<br></div><div><div>CONFIG_HAVE_PERF_EVENTS=y</div><div>CONFIG_PERF_EVENTS=y</div><div>CONFIG_PERF_COUNTERS=y</div></div><div><br></div><div>are absent and thus not compiled as &quot;y&quot;.   Recompiling the kernel + setting up the kernel for ARM is necessary, but the basic core perf files are available in this version though.</div>
<div><div class="h5">
<br><div class="gmail_quote">On Sun, Jul 8, 2012 at 2:18 PM, Peter Teoh <span dir="ltr">&lt;<a href="mailto:htmldeveloper@gmail.com" target="_blank">htmldeveloper@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

I think it is not so simple.   For example, for my Sony Ericsson, and from here:<div><br></div><div><a href="http://developer.sonymobile.com/wp/2011/05/06/how-to-build-a-linux-kernel/" target="_blank">http://developer.sonymobile.com/wp/2011/05/06/how-to-build-a-linux-kernel/</a><br>


<br>I downloaded the kernel 4 <div><div><br><br><br><div class="gmail_quote">On Sat, Jul 7, 2012 at 6:59 PM, Philipp Ittershagen <span dir="ltr">&lt;<a href="mailto:p.ittershagen@googlemail.com" target="_blank">p.ittershagen@googlemail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Sandeep,<br>
<br>
you need an ARM toolchain to compile the perf userspace tool, which is<br>
the second thing you need in order to use perf on a machine (the first<br>
thing is the kernel stuff, which you already have). So the things you<br>
have to do is<br>
<br>
(1) compile/install your own ARM toolchain and compile all libraries<br>
which are needed for perf or<br>
(2) find a static perf compiled for ARM which you can copy to your device.<br>
<br>
Greetings,<br>
<br>
  Philipp<br>
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span><font color="#888888">-- <br>Regards,<br>Peter Teoh<br>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br>Regards,<br>Peter Teoh<br>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Regards,<br>Peter Teoh<br>
</div>