OProfile
i.MX51 EVK Linux Reference Manual
33-4
Freescale Semiconductor
33.7
Menu Configuration Options
The following Linux kernel configurations are provided for this module. To get to the Oprofile
configuration, use the command
./ltib -c
from the <
ltib dir
>. On the screen, first go to Package list
and select oprofile. Then return to the first screen and, select
Configure Kernel
, then exit, and a new
screen appears.
•
CONFIG_OPROFILE—configuration option for the oprofile driver. In the menuconfig this option
is available under
General Setup
>
Profiling support (EXPERIMENTAL)
>
OProfile system profiling
(EXPERIMENTAL)
33.8
Programming Interface
This driver implements all the methods required to configure and control PMU and L2 cache EVTMON
counters. Refer to the doxygen documentation for more information (in the doxygen folder of the
documentation package).
33.9
Interrupt Requirements
The number of interrupts generated with respect to the OProfile driver are numerous. The latency
requirements are not needed. The rate at which interrupts are generated depends on the event.
33.10 Example Software Configuration
The following steps show and example of how to configure the OProfile:
1. Use the command
./ltib -c
from the <ltib dir>. On the screen, first go to Package list and select
oprofile. The current version in ltib is 0.9.5.
2. Then return to the first screen and select
Configure Kernel
, follow the instruction from
Section 33.7, “Menu Configuration Options,”
to enable Oprofile in the kernel space.
3. Save the configuration and start to build.
4. Copy Oprofile binaries to target rootfs. Copy vmlinux to
/boot
directory and run Oprofile
root@ubuntu:/boot# opcontrol --separate=kernel --vmlinux=/boot/vmlinux
root@ubuntu:/boot# opcontrol --reset
Signalling daemon... done
root@ubuntu:/boot# opcontrol --setup --event=CPU_CYCLES:100000
root@ubuntu:/boot# opcontrol --start
Profiler running.
root@ubuntu:/boot# opcontrol --dump
root@ubuntu:/boot# opreport
Overflow stats not available
CPU: ARM V7 PMNC, speed 0 MHz (estimated)
Counted CPU_CYCLES events (Number of CPU cycles) with a unit mask of 0x00 (No un
it mask) count 100000
CPU_CYCLES:100000|
samples| %|
------------------
4 22.2222 grep
CPU_CYCLES:100000|
Summary of Contents for i.MX51 EVK
Page 1: ...Part Number 924 76374 Rev 10 11 01 11 2010 i MX51 EVK Linux Reference Manual...
Page 14: ...i MX51 EVK Linux Reference Manual xiv Freescale Semiconductor...
Page 18: ...i MX51 EVK Linux Reference Manual xviii Freescale Semiconductor...
Page 24: ...i MX51 EVK Linux Reference Manual xxiv Freescale Semiconductor...
Page 38: ...Machine Specific Layer MSL i MX51 EVK Linux Reference Manual 2 8 Freescale Semiconductor...
Page 52: ...MC13892 Digitizer Driver i MX51 EVK Linux Reference Manual 5 4 Freescale Semiconductor...
Page 64: ...TV Encoder TVE Driver i MX51 EVK Linux Reference Manual 10 4 Freescale Semiconductor...
Page 82: ...Video for Linux Two V4L2 Driver i MX51 EVK Linux Reference Manual 12 8 Freescale Semiconductor...
Page 86: ...i MX5 Dual Display i MX51 EVK Linux Reference Manual 13 4 Freescale Semiconductor...
Page 100: ...X Windows Acceleration i MX51 EVK Linux Reference Manual 16 6 Freescale Semiconductor...
Page 118: ...Low Level Keypad Driver i MX51 EVK Linux Reference Manual 20 6 Freescale Semiconductor...
Page 134: ...Security Drivers i MX51 EVK Linux Reference Manual 22 10 Freescale Semiconductor...
Page 148: ...Inter IC I2C Driver i MX51 EVK Linux Reference Manual 24 4 Freescale Semiconductor...
Page 178: ...ARC USB Driver i MX51 EVK Linux Reference Manual 29 10 Freescale Semiconductor...
Page 194: ...OProfile i MX51 EVK Linux Reference Manual 33 6 Freescale Semiconductor...