$ ./ltib -p kernel -c -f //Configures the kernel package only and forces a kernel rebuild
General Setup ---> Select [*] Profiling Support General Setup ---> Select <*> OProfile system profiling Kernel Hacking ---> Select [*] Kernel Debugging <Exit> <Exit> and Save will start the build
Note: do not select performance counters and monitoring support for time mode. i.e.:
General Setup ---> Kernel Performance Events And Counters ---> [ ] Kernel performance events and counters
// The new kernel image (uImage) is put in ../ltib/rootfs/boot/
$ sudo dd if=uImage of=/dev/sdx bs=512 seek=2048 &sync
$ sudo mount -l /dev/sdx1 /media/sdcard $ sudo cp vmlinux /media/sdcard/boot/vmlinux
$ cd /boot $ sudo cp vmlinux vmlinux-'uname -r' $ cd ~
$ sudo apt-get install oprofile
$ sudo opcontrol --init $ sudo opcontrol --vmlinux=/boot/vmlinux-'uname -r' $ sudo opcontrol --start $ sudo opcontrol --status // do stuff $ sudo opcontrol --dump $ sudo opcontrol --stop
$ sudo opreport --symbols