1. 下载iperf src
https://github.com/esnet/iperf/
2.修改makefile.in 里面的配置.
src/Makefile.in 613行 地方两行,去掉-pg参数.修改后如下
##iperf3_profile_CFLAGS = -pg -g iperf3_profile_CFLAGS = -g iperf3_profile_LDADD = libiperf.la ##iperf3_profile_LDFLAGS = -pg -g iperf3_profile_LDFLAGS = -g # Specify the sources and various flags for the test cases t_timer_SOURCES = t_timer.c