Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] OT: Using oprofile
@ 2011-11-02 19:35 Will Wagner
  2011-11-30 16:33 ` Felipe Contreras
  0 siblings, 1 reply; 3+ messages in thread
From: Will Wagner @ 2011-11-02 19:35 UTC (permalink / raw)
  To: buildroot

I know this is slightly off topic, but I assume some buildroot users 
must be doing this...

I want to use oprofile on my target, which I have the basics working 
(using buildroot master). However I am having two problems which I am 
not sure how to work around:

- when trying to profile with vmlinux it fails saying objdump is not 
installed (which it is not). It says I can pass in the kernel range, I'm 
just not sure how to get it.
- the app I would like to profile is stripped and I have no source on 
the target. I want to get more detailed call info so I assume I need to 
copy the collected data back onto my build machine where I can then do 
the analysis. Is this the correct way of doing it? Does anyone have 
examples of what they do.

Any help much appreciated.

Will
-- 
------------------------------------------------------------------------
Will Wagner                                     will_wagner at carallon.com
Development Manager                      Office Tel: +44 (0)20 7371 2032
Carallon Ltd, Studio G20, Shepherds Building, Rockley Rd, London W14 0DA
------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] OT: Using oprofile
  2011-11-02 19:35 [Buildroot] OT: Using oprofile Will Wagner
@ 2011-11-30 16:33 ` Felipe Contreras
  2011-12-01  5:38   ` Baruch Siach
  0 siblings, 1 reply; 3+ messages in thread
From: Felipe Contreras @ 2011-11-30 16:33 UTC (permalink / raw)
  To: buildroot

On Wed, Nov 2, 2011 at 9:35 PM, Will Wagner <will_wagner@carallon.com> wrote:
> I know this is slightly off topic, but I assume some buildroot users must be
> doing this...
>
> I want to use oprofile on my target, which I have the basics working (using
> buildroot master). However I am having two problems which I am not sure how
> to work around:
>
> - when trying to profile with vmlinux it fails saying objdump is not
> installed (which it is not). It says I can pass in the kernel range, I'm
> just not sure how to get it.

You can read the soucecode, objdump is a shell script. Check
get_image_range() and run the objdump commands on your machine.

> - the app I would like to profile is stripped and I have no source on the
> target. I want to get more detailed call info so I assume I need to copy the
> collected data back onto my build machine where I can then do the analysis.
> Is this the correct way of doing it? Does anyone have examples of what they
> do.

You need the debug symbols. They can be installed in a separate
location, but you need them. There are some hacks that could be used
on some systems so you don't need those symbols (I remember we used
something like that for the Nokia N900), but that's pretty obscure.

Cheers.

-- 
Felipe Contreras

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] OT: Using oprofile
  2011-11-30 16:33 ` Felipe Contreras
@ 2011-12-01  5:38   ` Baruch Siach
  0 siblings, 0 replies; 3+ messages in thread
From: Baruch Siach @ 2011-12-01  5:38 UTC (permalink / raw)
  To: buildroot

Hi Felipe

On Wed, Nov 30, 2011 at 06:33:12PM +0200, Felipe Contreras wrote:
> On Wed, Nov 2, 2011 at 9:35 PM, Will Wagner <will_wagner@carallon.com> wrote:
> > I know this is slightly off topic, but I assume some buildroot users must be
> > doing this...
> >
> > I want to use oprofile on my target, which I have the basics working (using
> > buildroot master). However I am having two problems which I am not sure how
> > to work around:
> >
> > - when trying to profile with vmlinux it fails saying objdump is not
> > installed (which it is not). It says I can pass in the kernel range, I'm
> > just not sure how to get it.
> 
> You can read the soucecode, objdump is a shell script. Check
> get_image_range() and run the objdump commands on your machine.

You probably meant to say "opcontrol is a shell script".

baruch

-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-12-01  5:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-02 19:35 [Buildroot] OT: Using oprofile Will Wagner
2011-11-30 16:33 ` Felipe Contreras
2011-12-01  5:38   ` Baruch Siach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox