2009-01-23 04:47:21     oprofile user app

Document created by Aaronwu Employee on Aug 9, 2013
Version 1Show Document
  • View in full screen mode

2009-01-23 04:47:21     oprofile user app

Andras Szemzo (HUNGARY)

Message: 68279   

 

Hi,

 

I'm trying to oprofile the attached app with the following commands:

 

/usr/bin/bfin_opcontrol --init

/usr/bin/oprofiled -e '' --no-vmlinux --image=/opt/jpegtest &

/usr/bin/bfin_opcontrol --start

/opt/jpegtest

/usr/bin/bfin_opcontrol --dump

/usr/bin/opreport -lw

 

And here are the results:

 

PU: CPU with timer interrupt, speed 400 MHz (estimated)

Profiling through timer interrupt

vma      samples  %        symbol name

00000f04 13132    60.0293  _huffman

00001a3c 6218     28.4238  _encodeMCU

000017d4 1309      5.9837  _read_422_format

00002160 890       4.0684  ROW_START

00002120 116       0.5303  DCT_START

000020f0 78        0.3566  __r8x8dct

000021c8 50        0.2286  ROW_END

00001c88 43        0.1966  _encode_image

000021d6 30        0.1371  TERMINATE

000021d4 8         0.0366  DCT_END

000021e0 2         0.0091  ___udivsi3

 

 

 

Is there any chance, to somehow get more detail about it? (specially _encodeMCU) I mean there are functions, what aren't included in this list.

 

I tried several options, and readed the docs but I failed. Also, if I put the tables to l1_data_B and inner functions to l1_text it can be oprofiled too? ( this doesn't seemed to work, at least for me:) (In my app I'm using it in l1_text and sram)

 

Thanks,

 

Andras

 

jpegtest.tgz

QuoteReplyEditDelete

 

 

2009-01-23 05:59:37     Re: oprofile user app

Mike Frysinger (UNITED STATES)

Message: 68284   

 

oprofile is broken in the 2008R1.5 release

QuoteReplyEditDelete

 

 

2009-01-23 06:08:09     Re: oprofile user app

Andras Szemzo (HUNGARY)

Message: 68286   

 

i'm using yesterday svn. this is broken on that too?

QuoteReplyEditDelete

 

 

2009-01-23 06:15:07     Re: oprofile user app

Mike Frysinger (UNITED STATES)

Message: 68287   

 

no, it should be working in svn trunk

 

if you want to know how to run oprofile, please refer to the upstream manual:

http://oprofile.sourceforge.net/docs/

 

QuoteReplyEditDelete

 

 

2009-02-01 21:25:38     Re: oprofile user app

Graf Yang (CHINA)

Message: 68644   

 

If you want to get more detail, please add more debug infomation into you executable binary.

 

Currently, you can't get function name or other infomation that are located in l1_text.

QuoteReplyEditDelete

 

 

2009-02-02 05:07:23     Re: oprofile user app

Andras Szemzo (HUNGARY)

Message: 68663   

 

Thanks, I understand the l1_text problem. I'm using fdpic format, and compiled the app with -g. Can you tell me how can

 

I compile more debug info to it? Or direct me to a link or documentation. I googled, but possibly with wrong keywords

 

 

QuoteReplyEditDelete

 

 

2009-02-02 21:57:25     Re: oprofile user app

Graf Yang (CHINA)

Message: 68694   

 

Can you try use -fno-inline option? It prevent expanding any functions inline.

QuoteReplyEditDelete

 

 

2009-02-03 13:50:48     Re: oprofile user app

Andras Szemzo (HUNGARY)

Message: 68798   

 

Thanks, it works fine with -fno-inline.

Attachments

Outcomes