Hi, Maynard,

It is resloved now. It is beacuse of a local loop label. We need to stripe these local labels in case of confusing oprofile. Thanks for your kindly support.

 
------------------ Original ------------------
Date:  Fri, Sep 23, 2011 07:54 AM
To:  "maynardj"<maynardj@us.ibm.com>;
Cc:  "oprofile-list"<oprofile-list@lists.sourceforge.net>;
Subject:  Re: About Anonymous Symbol in Opreport
 
Hi, Maynard,
 
The attachment is the output with '--verbose=all' option. I've just copy the output related to the encoder.out.
 
Thanks and Regards.
Zhou, Chao
 
------------------ Original ------------------
Date:  Fri, Sep 23, 2011 00:59 AM
To:  "ztransform"<czhou2@qq.com>;
Cc:  "oprofile-list"<oprofile-list@lists.sourceforge.net>;
Subject:  Re: About Anonymous Symbol in Opreport
 
On 09/22/2011 10:01 AM, ztransform wrote:
> Hi, Maynard,
>
> please see my commnet inline.
>
> Thanks and Regards.
> Zhou, Chao
> ------------------ Original ------------------
> *From: * "Maynard Johnson"<maynardj@us.ibm.com>;
> *Date: * Thu, Sep 22, 2011 07:19 AM
> *To: * "ztransform"<czhou2@qq.com>;
> *Cc: * "oprofile-list"<oprofile-list@lists.sourceforge.net>;
> *Subject: * Re: About Anonymous Symbol in Opreport
> ztransform wrote:
>>  Hi,
>>
>>  I am new guy to oprofile. I have a question on opreport.
>>
>>  When i profile the code and dump the opreport, I found a "anonymous symbol
> from section .text ", I am using icc and yasm to compile the code. I am
> suspecting that "anonymous symbol " is an asm function, But I do not know why
> this function name does not show up. I do not stipe the asm *.o file.
>
> I don't speak icc or yasm, but I assume it generates an ELF binary.
> Yes, it generates an ELF binary.
> In the report, what image name is associated with this entry?
> It is video encoder written by ourself.
> What does 'file <image-name>' say in regards to it being stripped or not?
> How can we view the stripped information from the image file?

Using the 'file' command will just tell you whether or not encoder.out is
stripped.  Probably isn't, since you wrote it yourself, but humor me and check
it anyway.  If 'file' says "not stripped", then run opreport with
'--verbose=all' option.  This produces a *lot* of output, so redirect it to a
file.  Then search for 'op_bfd ctor' for the encoder.out binary, and copy all
output until you reach the next 'op_bfd ctor' for a different binary.  Paste
into a file and attach that file to your reply to this message.

-Maynard

> What is the percentage of samples attributed to this anonymous symbol?
> (11678 4.4190 encoder.out anonymous symbol from section .text) It takes 4.4190.
> What version of oprofile are you running?
> The version of oprofile I run is 0.9.6.
> Is this a C++ app?
> It is C app.
>
> -Maynard
>
>>
>>  Can someone please give some clue on this?
>>
>>  Thanks and Regards.
>>  Zhou, Chao