Skip to contentSkip to conversation

perf report and symbol addresses

DISCUSSION Joakim Tjernlund 2 participants 2 messages Sep 2, 2015 – Sep 21, 2015

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 8 lines · Joakim Tjernlund

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

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

Quoted 6 lines

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?

Quoted 7 lines

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html