This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OProfile with OMAP3530

Other Parts Discussed in Thread: OMAP3530

Hi

Anybody tried OProfile on OMAP3530 ?

My linux kernel is 2.6.29-rc3-omap,  configured with OProfile enabled

and build oprofile-0.9.6 . then

opcontrol --init

opcontrol --setup -i mybin --event=CPU_CYCLES:10000::0:1

opcontrol --start

...run my bin

opcontrol -dump

opreport -l mybin

then it report : no sample result retrieved

it is said there is bug with PMNC of oprofile at A8 platform

anybody had succeed to oprofile at OMAP3530 env?

what kind of patch needed? and the requirement to kernel version?

 

thanks

 

  • Cruise,

    Hello,

    I'm using Oprofile on Omap 3530, but I took a different route than you did. I went to Narcissus and downloaded a (default / simple / console) file system for omap3evm.

     

     

     

    http://www.angstrom-distribution.org/narcissus/

    I was testing some standard benchmarks like whetstone.  I was using kernel 2.6.32 with Oprofile support. I did have to enable Oprofile in the kernel:

    General Options -> Enable profiling -> enable Oprofile

    Then, I just used the following commands:

    opcontrol --reset

    opcontrol --start

    ./whetstone 10000

    opcontrol --stop

    opreport

     

    I have not been able to set up another Event counter, other than CPU_CYCLES. If anyone has had success setting up additional event counters, please let me know the necessary steps.

     

    Regards,

     

  • Hi,

    I had difficulty getting any samples with 2.6.29, but 2.6.32 (Arago PSP3 kernel) works fine.

     

    ,

    John

     

     

  • Could you explain how you built oprofile 0.9.6? I am trying to build it using the latest CodeSourcery tool chaing (arm-none-eabi) and I keep getting an error on configure:

    checking for poptGetContext in -lpopt... no

    configure: error: popt library not found

    libpopt-dev is installed on the host but I guess I need it for ARM. But I can't find it.

  • Since I use OpenEmbedded/Arago, I just used 'bitbake oprofile' which took care of dependencies on popt and binutils before building oprofile.  If you want to build it from scratch, you might have a look at the file arago-oe-dev/recipes/oprofile/oprofile.inc to see how it doe it.  I use the arm-2009q1 CodeSourcery toolchain.

    ,

    John