2013/8/8 Hauke Mehrtens <ha...@hauke-m.de>:
>> Should I play with some profiler?
>> /proc/profile (and readprofile user space tool) doesn't support
>> profiling modules :(
>
> You can compile bgmac into the kernel, the results you get should be the
> same as you would get for the module. You just have to change
> target/linux/brcm47xx/config-3.10 .

I built bgmac as a part of the kernel image and added System.map in
the following way:
> make V=s
> mkdir target/linux/generic/base-files/boot/
> cp 
> build_dir/target-mipsel_uClibc-0.9.33.2/linux-brcm47xx/linux-3.6.11/System.map
>  target/linux/generic/base-files/boot/
> make V=s

Then I tried profiling iperf client with the following command:
readprofile -r; iperf -c 192.168.1.218; readprofile | sort -nr
Unfortunately this resulted in 515 *unknown*, I'm not sure about this part.

Apart from that there are many calls to the
__copy_user_common

Please note I run "iperf -c" in the OpenWrt, so it was mostly doing
only TX (not much RX).

-- 
Rafał
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to