WARNING: This server is unstable and will be retired in the next days. If you want to keep this forum available, please request immediately a migration on the Nabble Support forum. Forums that don't receive any migration request will be deleted forever.

 « Return to Thread: How to configure oprofile for OMAP3530

Re: How to configure oprofile for OMAP3530

by rach81 :: Rate this Message:

| View in Thread

Hi Jean,
I have got my application name in opreport by putting application in loop.
I haven't copied vmlinux file into /root/oprofile/vmlinux but I have used opcontrol --vmlinux=/boot/vmlinux-2.6.28-omap1.
How to get execution time by using this report?I have attached opreport -l output with reply.
Test is my application name, it has taken 4 samples as per report but how to know about execution time?
Here it shows CPU speed 0 MHz(estimated), even though OMAP3530 600MHz. what will be reason?

Thanks,
Rach

Jean Pihet wrote:
On Tuesday 14 July 2009 15:39:51 rach81 wrote:
> Hello Jean,opreport-l.txt
> As per previous e-mail.
> I have checked execution time of my application by using gettimeofday()
> function. It's very less than a second around 0.600 ms. I wan to get
> precise output.
> Does it use CPU clock for taking sample ? how much is sampling rate?
> I have tried gprof also but it's sampling rate is 0.01 sec.
> I wan to check CPU_CYCLES of my application.
> Please guide me.
The running time of the application is too small. Since oprofile (and other
profiling tools) are statistical tools, you need to run the system for a
while in order to get enough samples.
Can you run your app in a loop? A few dozens of seconds should be enough.

Regards,
Jean

>
> Jean Pihet wrote:
> > On Monday 13 July 2009 16:07:59 rach81 wrote:
> >> Hello,
> >> Thank for reply.
> >> I am using Beaglebaord(OMAP3530) and I am running my application on
> >> angstrom Demo kernel. I have checked on Angstrom kernel file system
> >> about enable of oprofile "CONFIG_OPROFILE_ARMV7=y".
> >> So Now how to configure oprofile so I can do profiling with it on
> >> beagleboard.
> >
> > You need to run the commands as listed in the given e-mail thread link.
> >
> >> I have also tried to run opcontrol -l command on root and I got output
> >> on consol as per uploaded file.
> >
> > This looks ok so you have oprofile enabled for youe target processor.
> >
> > Good luck!
> >
> >> Thanks,
> >> rach
> >> http://www.nabble.com/file/p24462401/oprofile-l%2Boutput.txt
> >> oprofile-l+output.txt
> >>
> >> Jean Pihet wrote:
> >> > Hi,
> >> >
> >> > On Friday 10 July 2009 12:18:02 Rachit shah wrote:
> >> >> Hi,
> >> >>
> >> >> I want to use oprofile for OMAP3530. I am using Ubuntu 9.04 the
> >> >> jaunty jackalope release as host and Code Sourcery's G++ arm gnu
> >> >> linux
> >>
> >> 4.3-205
> >>
> >> >> version.
> >> >> Ubuntu has linux 2.6.28.13 generic kernel. I have installed oprofile
> >> >> from installation packages.
> >> >>
> >> >> Does it require to configure kernel which is running on target with
> >> >> oprofile enable?
> >> >> I am running my application on Angstrom Demo.
> >> >> Please guide me about to use oprofile for application running on
> >>
> >> target.
> >>
> >> > You may want to follow this thread
> >> > http://marc.info/?l=oprofile-list&m=124634769315909&w=2. It has
> >> > instructions
> >> > for the target kernel config and the commands to run.
> >> >
> >> > You need recent oprofile binaries on the target (0.9.4 or more recent)
> >>
> >> to
> >>
> >> > support the ARMv7.
> >> >
> >> >> Thanks,
> >> >> rach
> >> >
> >> > Jean
> >>
> >> ------------------------------------------------------------------------
> >>-
> >>
> >> >----- Enter the BlackBerry Developer Challenge
> >> > This is your chance to win up to $100,000 in prizes! For a limited
> >>
> >> time,
> >>
> >> > vendors submitting new applications to BlackBerry App World(TM) will
> >>
> >> have
> >>
> >> > the opportunity to enter the BlackBerry Developer Challenge. See full
> >> > prize
> >> > details at: http://p.sf.net/sfu/Challenge
> >> > _______________________________________________
> >> > oprofile-list mailing list
> >> > oprofile-list@lists.sourceforge.net
> >> > https://lists.sourceforge.net/lists/listinfo/oprofile-list
> >
> > -------------------------------------------------------------------------
> >----- Enter the BlackBerry Developer Challenge
> > This is your chance to win up to $100,000 in prizes! For a limited time,
> > vendors submitting new applications to BlackBerry App World(TM) will have
> > the opportunity to enter the BlackBerry Developer Challenge. See full
> > prize
> > details at: http://p.sf.net/sfu/Challenge
> > _______________________________________________
> > oprofile-list mailing list
> > oprofile-list@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/oprofile-list



------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
oprofile-list mailing list
oprofile-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oprofile-list

 « Return to Thread: How to configure oprofile for OMAP3530