Re: Regarding usage of perf tools

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Just one more point, the kernel implementation of "perf" is in arch/x86/kernel directory (just one of them), and grepping "PERF_" 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.

On Sun, Jul 8, 2012 at 2:23 PM, Peter Teoh <htmldeveloper@xxxxxxxxx> wrote:
Sorry about the mistake.   Resending the answer again:

I think it is not so simple.   For example, for my Sony Ericsson, and from here:

http://developer.sonymobile.com/wp/2011/05/06/how-to-build-a-linux-kernel/

I downloaded the kernel 4.0.2.A.0.42.tar.bz2 kernel, and from the semc_anzu_config file:

CONFIG_MMC_PERF_PROFILING=y

Other necessary configuration:

CONFIG_HAVE_PERF_EVENTS=y
CONFIG_PERF_EVENTS=y
CONFIG_PERF_COUNTERS=y

are absent and thus not compiled as "y".   Recompiling the kernel + setting up the kernel for ARM is necessary, but the basic core perf files are available in this version though.

On Sun, Jul 8, 2012 at 2:18 PM, Peter Teoh <htmldeveloper@xxxxxxxxx> wrote:
I think it is not so simple.   For example, for my Sony Ericsson, and from here:

http://developer.sonymobile.com/wp/2011/05/06/how-to-build-a-linux-kernel/

I downloaded the kernel 4 



On Sat, Jul 7, 2012 at 6:59 PM, Philipp Ittershagen <p.ittershagen@xxxxxxxxxxxxxx> wrote:
Hello Sandeep,

you need an ARM toolchain to compile the perf userspace tool, which is
the second thing you need in order to use perf on a machine (the first
thing is the kernel stuff, which you already have). So the things you
have to do is

(1) compile/install your own ARM toolchain and compile all libraries
which are needed for perf or
(2) find a static perf compiled for ARM which you can copy to your device.

Greetings,

  Philipp

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



--
Regards,
Peter Teoh



--
Regards,
Peter Teoh



--
Regards,
Peter Teoh
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux