Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
hex values for method names
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  11 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
iam_donald  
View profile  
 More options Jun 1 2012, 1:03 pm
From: iam_donald <donald....@gmail.com>
Date: Fri, 1 Jun 2012 10:03:07 -0700 (PDT)
Local: Fri, Jun 1 2012 1:03 pm
Subject: hex values for method names

Hi, I am building my project with debugging enabled [-g] however the
profiling output generated has hex values for method names. Like this:

       0   0.0% 100.0%       58   8.1% 0x0000000103ccbc83
       0   0.0% 100.0%       58   8.1% 0x0000000103eacf29
       0   0.0% 100.0%        1   0.1% 0x0000000103f77c4f
       0   0.0% 100.0%        1   0.1% 0x0000000103f78803
       0   0.0% 100.0%       13   1.8% 0x0000000104170787
       0   0.0% 100.0%        1   0.1% 0x0000000106412fe2
       0   0.0% 100.0%        1   0.1% 0x00000001080fda23
       0   0.0% 100.0%        2   0.3% 0x000000010872f97f
       0   0.0% 100.0%       10   1.4% 0x00007fc8a3a05b4f
       0   0.0% 100.0%        1   0.1% 0x00007fc8a482bc2f
       0   0.0% 100.0%        1   0.1% 0x00007fff638c8fef
       0   0.0% 100.0%        1   0.1% 0x00007fff6390ac5f
       0   0.0% 100.0%        1   0.1% 0x00007fff88003f72
       0   0.0% 100.0%        1   0.1% 0x00007fff880112a4

How do I resolve this? Thanks.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Chappelle  
View profile  
 More options Jun 1 2012, 2:15 pm
From: David Chappelle <chapp...@gmail.com>
Date: Fri, 1 Jun 2012 14:15:50 -0400
Local: Fri, Jun 1 2012 2:15 pm
Subject: Re: hex values for method names
Are there any method names or are they all hexadecimal? Are you
linking against any third party libraries?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Santosh Mahto  
View profile  
 More options Jun 1 2012, 5:11 pm
From: Santosh Mahto <santosh.inb...@gmail.com>
Date: Fri, 1 Jun 2012 14:11:00 -0700
Subject: Re: hex values for method names

some clue might work:

enable profiling=1
          disable_pie = 1
          fno-omit-frame-pointer = 1

if still problem exists:

   install correct version of libwind.
   install pprof package. latest version.

if still problem exists:

   you can use addr2line -Cfe  binary.out  0x323324   to get the actual
function name


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
iam_donald  
View profile  
 More options Jun 1 2012, 6:24 pm
From: iam_donald <donald....@gmail.com>
Date: Fri, 1 Jun 2012 15:24:35 -0700 (PDT)
Local: Fri, Jun 1 2012 6:24 pm
Subject: Re: hex values for method names

There are some method names. I tried with gcc -pg and clang and still got
nothing


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Chappelle  
View profile  
 More options Jun 1 2012, 7:21 pm
From: David Chappelle <chapp...@gmail.com>
Date: Fri, 1 Jun 2012 19:21:19 -0400
Local: Fri, Jun 1 2012 7:21 pm
Subject: Re: hex values for method names
As Santosh suggested, does addr2line resolve any of these symbol
addresses? It is possible that these are coming from a third party
library like libc, glibc, etc that is stripped of symbols.

Try writing a simple main.cpp that calls several locally defined
functions. Are all of the symbols you expect to show up in the output
there?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
iam_donald  
View profile  
 More options Jun 1 2012, 7:51 pm
From: iam_donald <donald....@gmail.com>
Date: Fri, 1 Jun 2012 16:51:30 -0700 (PDT)
Local: Fri, Jun 1 2012 7:51 pm
Subject: Re: hex values for method names

On Friday, June 1, 2012 11:34:13 PM UTC, iam_donald wrote:

> I'm using debug libraries to build the debug version of the programme and
> it's giving me this output. Do I set these flags with pprof? : enable
> profiling=1
>           disable_pie = 1
>           fno-omit-frame-pointer = 1

 Also my gnu bundle doesn't have addr2line, I'm not sure if it's a mac
thing. I'll look aroung for the source but if any of you have a link to it
please post it. Thanks.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
iam_donald  
View profile  
 More options Jun 1 2012, 8:11 pm
From: iam_donald <donald....@gmail.com>
Date: Fri, 1 Jun 2012 17:11:45 -0700 (PDT)
Local: Fri, Jun 1 2012 8:11 pm
Subject: Re: hex values for method names

I used addr2line, it's doesn't return anything meaningful - it just outputs
'??:0' - for the tested hex values in the profiling info.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Santosh Mahto  
View profile  
 More options Jun 2 2012, 5:27 am
From: Santosh Mahto <santosh.inb...@gmail.com>
Date: Sat, 2 Jun 2012 14:57:22 +0530
Local: Sat, Jun 2 2012 5:27 am
Subject: Re: hex values for method names

Hi

use $nm  binary.out >> log.txt
and check log.txt contain any symbol name or not.(it could be possible that
 even if you compile with -g symbol but strip the binary at after linking)

If it contains symbols then follow as below:
I can see two kind  of address
 0x0000000103f77c4f   -->looks like logical address
 0x00007fff6390ac5f  --> looks like actual physical address.

use addr2line  -Cfe  bin.out  <logical address>
in this case  addr2line -Cfe  binary_name   0x0000000103f77c4f

Also you need to enable flag whatever I mentioned for your binary.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nick Haliday  
View profile  
 More options Sep 2 2012, 6:10 pm
From: Nick Haliday <nick.hali...@gmail.com>
Date: Sun, 2 Sep 2012 15:10:38 -0700 (PDT)
Local: Sun, Sep 2 2012 6:10 pm
Subject: Re: hex values for method names

Did anyone ever figure this out? I've already tried this with llvm-gcc,
clang, and even a fresh gcc 4.7.1 built from source, all w/ -pg and
-lprofiler flags. I've also tried splitting out linking as a separate step.
Nothing's worked so far.

I attached the output of nm and pprof --text after building with "clang++
myprog.cpp -pg -lprofiler -o myprof". A few of the standard library
functions' names are still present in pprof's output, but otherwise it's a
bunch of hex addresses. Strangely enough the hex addresses of the
function's I'm interested in (matexp, matmult, etc.; they're name mangled
in nm's output) aren't present in pprof's output.

I'm trying to profile a simple one file program with no dependencies beyond
the STL and C stdlib, and I'm on OS X if that helps.

  nmoutput.txt
2K Download

  pprofoutput.txt
6K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stefan Muller  
View profile  
 More options Sep 5 2012, 5:23 am
From: Stefan Muller <shmuel...@gmail.com>
Date: Wed, 5 Sep 2012 02:23:32 -0700 (PDT)
Local: Wed, Sep 5 2012 5:23 am
Subject: Re: hex values for method names

Hi!

Same problem here, also on Mac OS X 10.7.4, using gcc from Xcode 4.4.1.
Also tried clang, same issue. I'm using gperftools 2.0 installed via
homebrew.

The gperftools CPU profiler does not resolve function names. The following
simple test program (test.c) reproduces the issue on my Mac:

double sum(double a, double b) {
    return a + b;

}

int main() {
    int i;
    double a = 0., b = 1.;

    for (i=0; i<100000000; i++) {
        a = sum(a, b);
    }
    return 0;

}

Note that there are no #include statements. Running this on my Mac yields:

$ gcc test.c -o test -lprofiler
$ CPUPROFILE=test.prof ./test
PROFILE: interrupts/evictions/bytes = 107/13/1624
$ pprof --text test test.prof
Using local file test.
Using local file test.prof.
Removing __sigtramp from all stack traces.
Total: 107 samples
      19  17.8%  17.8%       19  17.8% 0x0000000109a65e86
      18  16.8%  34.6%       18  16.8% 0x0000000109a65e7c
      18  16.8%  51.4%       18  16.8% 0x0000000109a65e90
      15  14.0%  65.4%       15  14.0% 0x0000000109a65e73
      11  10.3%  75.7%       11  10.3% 0x0000000109a65ede
       6   5.6%  81.3%        6   5.6% 0x0000000109a65e61
       6   5.6%  86.9%        6   5.6% 0x0000000109a65e8b
       5   4.7%  91.6%        5   4.7% 0x0000000109a65eed
       4   3.7%  95.3%        4   3.7% 0x0000000109a65ef9
       3   2.8%  98.1%        3   2.8% 0x0000000109a65e69
       1   0.9%  99.1%        1   0.9% 0x0000000109a65e81
       1   0.9% 100.0%        1   0.9% 0x0000000109a65ee8
       0   0.0% 100.0%      107 100.0% 0x0000000109a65e53
       0   0.0% 100.0%       80  74.8% 0x0000000109a65ee7
       0   0.0% 100.0%       21  19.6% 0x00029bdb3ab52bf1
       0   0.0% 100.0%        7   6.5% 0x00029bdb3ab63fda
       0   0.0% 100.0%      107 100.0% __mh_execute_header
       0   0.0% 100.0%       79  73.8% __sigtramp
$ nm test
0000000100001040 S _NXArgc
0000000100001048 S _NXArgv
0000000100001058 S ___progname
0000000100000000 A __mh_execute_header
0000000100001050 S _environ
                 U _exit
0000000100000ea0 T _main
0000000100001000 s _pvars
0000000100000e60 T _sum
                 U dyld_stub_binder
0000000100000e20 T start

So the output of pprof is useless, while nm reveals that all the symbol
information is there. Adding -g and/or -pg compiler flags didn't change
anything, just adds some more symbols.

Thanks,
Stefan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Keiw Kw  
View profile  
 More options Mar 21, 10:24 am
From: Keiw Kw <keiw0...@gmail.com>
Date: Thu, 21 Mar 2013 07:24:18 -0700 (PDT)
Local: Thurs, Mar 21 2013 10:24 am
Subject: Re: hex values for method names

Hi guys,

are there any updates on this issue?
Has anybody managed to make it show symbol information on Mac OS 10.7?

Thanks in advance.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »