Hi Maynard,

Thanks a lot for your quick response. I do have the 0.9.7 version of oprofile. But the cpu_type is set to timertest. Here are some outputs for relevant information:

test@test-pandaboard:~$ opcontrol --version
opcontrol: oprofile 0.9.7 compiled on Dec 15 2011 17:54:57

test@test-pandaboard:~$ uname -r
3.0.0-1206-omap4

test@test-pandaboard:~$ cat /dev/oprofile/cpu_type
timertest

I built the oprofile from the source on this OMAP platform directly last month (no cross-compilation). It was just "./configure -disable-werror -with-kernel-support; make; sudo make install" as far as I can remember.

Maybe for some reason the cpu_type was set wrong? Is there any way to simply overwrite or refresh it? Or is the problem bigger than that?

Thanks,

Lik


On Mon, Jan 9, 2012 at 8:39 AM, Maynard Johnson <maynardj@us.ibm.com> wrote:
On 01/08/2012 8:58 PM, Lik Lik wrote:
Hi all,

I am an oprofile user and I need to profile one of my applications on a TI OMAP4
platform (pandaboard, to be specific). I have ubuntu 11.10 installed. My problem
is that oprofile always use the timer interrupt mode but doesn't recognize the
hardware counters, which I am sure my platform has.
Hi, Lik,
OProfile userspace support for ARM Cortex-A9 was added by Will Deacon in June 2010.  This support is available in OProfile 0.9.7.  According to Will's posting, the kernel support was due to be added to Ubuntu Maverick, so I would expect your version should support CA9 out of the box.  If not already using oprofile 0.9.7, please upgrade to that version and retry.  If it still doesn't work, please re-post with complete information (kernel version, oprofile command output, and contents of /dev/oprofile/cpu_type).

-Maynard


After reading some previous emails from this list my feeling is that I need a
linux kernel with oprofile support, and then I can use --vmlinux to get the
counter enabled. Is that correct or am I missing the point?

If that is the case, given the fact that I don't have much experience building
linux kernel, I wonder if there is a pre-built vmlinux file that I can download.
If I have to build the kernel by myself, what is the easiest approach?

If I misunderstand the issue, would you please correct me?

Thanks,

Lik


------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox



_______________________________________________
oprofile-list mailing list
oprofile-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oprofile-list