linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* perf report and symbol addresses
@ 2015-09-02 16:43 Joakim Tjernlund
  2015-09-21 10:57 ` Michael Petlan
  0 siblings, 1 reply; 2+ messages in thread
From: Joakim Tjernlund @ 2015-09-02 16:43 UTC (permalink / raw)
  To: linux-perf-users@vger.kernel.org

on PPC I do:
# > perf record -a   /root/a.out

then 
#> perf report -v
...
50.36%        a.out  /root/a.out                                               0x2c4      d [.] main

compare the address 0x2c4 with
#> nm -a a.out  | grep main
         U __libc_start_main@@GLIBC_2.0
100002c0 T main

The perf reported address is lacking 0x10000000.

How do I list the absolut symbol address?

 Jocke

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

* Re: perf report and symbol addresses
  2015-09-02 16:43 perf report and symbol addresses Joakim Tjernlund
@ 2015-09-21 10:57 ` Michael Petlan
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Petlan @ 2015-09-21 10:57 UTC (permalink / raw)
  To: Joakim Tjernlund; +Cc: linux-perf-users@vger.kernel.org

On Wed, 2015-09-02 at 16:43 +0000, Joakim Tjernlund wrote:
> on PPC I do:
> # > perf record -a   /root/a.out
> 
> then 
> #> perf report -v
> ...
> 50.36%        a.out  /root/a.out                                               0x2c4      d [.] main
> 
> compare the address 0x2c4 with
> #> nm -a a.out  | grep main
>          U __libc_start_main@@GLIBC_2.0
> 100002c0 T main
> 
> The perf reported address is lacking 0x10000000.

What happens when you run perf record and perf report again? Is the
address reported by perf still the same?

What 'readelf -a' says about the binary?

> 
> How do I list the absolut symbol address?
> 
>  Jocke--
> To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2015-09-21 10:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-02 16:43 perf report and symbol addresses Joakim Tjernlund
2015-09-21 10:57 ` Michael Petlan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).