Skip to main content.

5.4.4. Profiling techniques

simple session (multiply example taken from [1])

# initalize oprof
$ opcontrol --init

# where's our kernel?
$ opcontrol --vmlinux=/tmp/vmlinux

# clear old data
$ opcontrol --reset

# available events?
$ opcontrol -l

# start daemon and start collecting data
$ opcontrol --start

# run application
$ while ./multiply; do ./multiply; echo -n .; done
......... 

# dump data to daemon
$ opcontrol --dump

# stop daemon
$ opcontrol --stop

# examine
$ opcontrol -l ./multiply

# annotate
$ opannotate -s ./multiply

5.4.3. Debugging with Hardware Debuggers 1. Denx Training Topics 5.5. The Linux driver model
Prev Home Next