http://wiki.laptop.org/go/Oprofile_setupOprofile setupFrom OLPC
[edit] Setting Up OProfile to Run on OLPC LaptopIt is possible to get OProfile in timer mode working on the olpc machine. Performance monitoring hardware on Geode process is not supported. The jffs2 file system does NOT support the mechanism that OProfile uses. You will need another file system such as ramfs filesystem or USB flash drive formatted as ext3 or VFAT to store the OProfile data. [edit] OLPC Machine Steps
yum install binutils oprofile Or init 3; yum -yt install binutils oprofile
mkdir /var/lib/oprofile mount -t ramfs none /var/lib/oprofile Or mkdir /media/usbflash mount -t ext3 /dev/sda1 /media/usbflash rm -rf /var/lib/oprofile/samples/current mkdir /media/usbflash/samples ln -s /media/usbflash/samples /var/lib/oprofile/samples/current
opcontrol --setup --vmlinux=/root/vmlinux --separate=library If you do not care about kernel data, you can skip installing vmlinux and configure with: opcontrol --setup --no-vmlinux --separate=library
opcontrol --start
opcontrol --shutdown
[edit] Discussions about Oprofile @ devel
Categories: Translated Pages | Developers | OS
| Software development Developers Language support > Translated Pages Projects > Software > OS Projects > Software > Software development |
