OProfile
i.MX51 EVK Linux Reference Manual
Freescale Semiconductor
33-3
33.4.4
OProfile Daemon
The OProfile userspace daemon takes the raw data provided by the kernel and writes it to the disk. It takes
the single data stream from the kernel and logs sample data against a number of sample files (available in
/var/lib/oprofile/samples/current/
). For the benefit of the separate functionality, the names and paths
of these sample files are changed to reflect where the samples were from. This can include thread IDs, the
binary file path, the event type used, and more.
After this final step from interrupt to disk file, the data is now persistent (that is, changes in the running of
the system do not invalidate stored data). This enables the post-profiling tools to run on this data at any
time (assuming the original binary files are still available and unchanged).
33.4.5
Post Profiling Tools
The collected data must be presented to the user in a useful form. This is the job of the post-profiling tools.
In general, they collate a subset of the available sample files, load and process each one correlated against
the relevant binary file, and produce user readable information.
33.5
Requirements
The requirements of OProfile are as follows:
33.6
Source Code Structure
Oprofile platform-specific source files are available in the directory:
<ltib_dir>/rpm/BUILD/linux/arch/arm/oprofile/
The generic kernel driver for Oprofile is located under
<ltib_dir>/rpm/BUILD/linux/drivers/oprofile/
Table 33-1. OProfile Source Files
File
Description
op_arm_model.h
Header File with the register and bit definitions
common.c
Source file with the implementation required for all platforms
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...