OT: Using oprofile
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
Signature · 5 lines
------------------------------------------------------------------------ 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 ------------------------------------------------------------------------
Quoted 10 lines · Will Wagner
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.
Quoted 5 lines
- 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.
Signature · 1 line
Felipe Contreras
Hi Felipe
Quoted 8 lines · Felipe Contreras
Quoted 7 lines · Will Wagner
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:
Quoted 6 lines
Quoted 3 lines
- 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
Signature · 3 lines
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -