Regarding usage of perf tools
Hi all, I am trying to use perf tools for ARM architecture. I did the following things on x86 PC 1) I compiled my linux kernel with kernel version 2.6.32 (coz perf tools are available from this version) 2) And In the user space i installed corresponding linux-tools-2.6.32. After these steps i am able to succesfully run my perf tools on my ubuntu pc. Now i want to follow the same procedure for Android device. The problem i am facing is in step (2). In Android how do i port linux-tools-2.6.32 ? Please tell me whether it is feasible or not? if yes, suggest any pointers.. -- With regards, Sandeep Kumar Anantapalli,
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
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@googlemail.com> 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@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- Regards, Peter Teoh
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@gmail.com> 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@googlemail.com> 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@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- Regards, Peter Teoh
-- Regards, Peter Teoh
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@gmail.com> 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@gmail.com>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@googlemail.com> 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@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- Regards, Peter Teoh
-- Regards, Peter Teoh
-- Regards, Peter Teoh
participants (3)
-
Peter Teoh -
Philipp Ittershagen -
sandeep kumar