Hi,I want to use kernprof analyse the kernel performance.The steps is following
1> # cd linux-2.4.20
# patch -p1 < profile-0.12.2-2.4.19.patch
2> make menuconfig
chooseing " kernel profiling support " " instrument kernel at entry to all
c functions " and "limit recursion in entry profiling" in "kernel hacking " .
3> compile the kernel
4> edit lilo.conf and " mknod /dev/profile c 192 0 "
5> reboot and entrying into the new kernel with kernprof patch and load
kernprof
6> # kernprof -b cg
system show " /proc/profile : No Such file " (Attention: Being
/proc/profile ,Not /dev/profile) There are not /proc/profile in dentry of /proc
and the dentry created force don't be accecped by system . The gcc of
version is 3.2.2 in my PC .So there is no need for patching gcc.
Please help me ,Thank you !!!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~网易VIP收费邮箱两周年超值优惠!
满1赠6!! http://vip.163.com
中国最大的免费邮箱在等你 25兆空间4兆附件! http://mail.163.com
点击网易泡泡惊喜无限 全免费手机短信任你发! http://popo.163.com
|