sudo yum install perf
[steve@steve-GA-880GMA-UD2H perf]$ pgrep iperf
2807
[steve@steve-GA-880GMA-UD2H perf]$ perf record -p 2807 -g
^C[ perf record: Woken up 26 times to write data ]
[nf_nat_ipv4] with build id 08e53c9cb720761011036c0f3f3d7db2feb62bc3 not found, continuing without symbols
[nf_conntrack] with build id 6b2d193426fa4e8a93181f77d0622c1425d23af9 not found, continuing without symbols
[iptable_mangle] with build id 3f487227e3da17d0386b8a8b6976ade8311bc0fd not found, continuing without symbols
[nf_conntrack_ipv4] with build id d872b229572d3106b3b415d24a83679191cfd58c not found, continuing without symbols
[iptable_nat] with build id 4a354a31abf978aacb65d3e7c53e13f421c6bdb9 not found, continuing without symbols
[nf_defrag_ipv4] with build id ed79015881b828ed986f78ee7fa06bb62ecf52f3 not found, continuing without symbols
[nf_nat] with build id 9135bac40d6819086edde4816d82c495bbc5640f not found, continuing without symbols
[radeon] with build id 7417d27e130d2e4eecb5d45cc08fb74b4eb003a5 not found, continuing without symbols
[drm] with build id b840649b8536d349cd1525af9dac7892f4b4f5d7 not found, continuing without symbols
[ perf record: Captured and wrote 6.551 MB perf.data (37928 samples) ]
[steve@steve-GA-880GMA-UD2H perf]$ perf report --stdio -g
# Children Self Command Shared Object Symbol
# ........ ........ ....... ................... ...............................................
#
98.75% 0.00% iperf libpthread-2.20.so [.] 0xffff80c11eca95fd
|
---0xf5fd
|
|--77.16%-- malloc
| 0x1d5
|
|--15.29%-- Server::Run
|
|--6.44%-- 0
--1.11%-- [...]
98.56% 0.08% iperf [kernel.kallsyms] [k] system_call_fastpath
|
---system_call_fastpath
|
|--99.89%-- 0xf5fd
| |
| |--78.04%-- malloc
| | 0x1d5
can't get report/annotate to show file/line
maybe related to ?
OK...
I could get it to work by building iperf with
CXXFLAGS='-g3 -gdwarf-2' CFLAGS='-g3 -gdwarf-2'
then some work to understand how threads are represented
I could get it to work by building iperf with
CXXFLAGS='-g3 -gdwarf-2' CFLAGS='-g3 -gdwarf-2'
then some work to understand how threads are represented