Yocto Project Profiling and Tracing Manual

Tom Zanussi

Intel Corporation

Permission is granted to copy, distribute and/or modify this document under the terms of the Creative Commons Attribution-Share Alike 2.0 UK: England & Wales as published by Creative Commons.

Note

For the latest version of this manual associated with this Yocto Project release, see the Yocto Project Profiling and Tracing Manual from the Yocto Project website.
Revision History
Revision 1.4 April 2013
Released with the Yocto Project 1.4 Release.
Revision 1.5 October 2013
Released with the Yocto Project 1.5 Release.
Revision 1.5.1 January 2014
Released with the Yocto Project 1.5.1 Release.
Revision 1.6 April 2014
Released with the Yocto Project 1.6 Release.
Revision 1.7 October 2014
Released with the Yocto Project 1.7 Release.
Revision 1.8 April 2015
Released with the Yocto Project 1.8 Release.
Revision 1.9 October 2015
Released with the Yocto Project 1.9 Release.

Table of Contents

1. Yocto Project Profiling and Tracing Manual
1.1. Introduction
1.2. General Setup
2. Overall Architecture of the Linux Tracing and Profiling Tools
2.1. Architecture of the Tracing and Profiling Tools
3. Basic Usage (with examples) for each of the Yocto Tracing Tools
3.1. perf
3.1.1. Setup
3.1.2. Basic Usage
3.1.3. Documentation
3.2. ftrace
3.2.1. Setup
3.2.2. Basic ftrace usage
3.2.3. The 'trace events' Subsystem
3.2.4. trace-cmd/kernelshark
3.2.5. Documentation
3.3. systemtap
3.3.1. Setup
3.3.2. Running a Script on a Target
3.3.3. Documentation
3.4. oprofile
3.4.1. Setup
3.4.2. Basic Usage
3.4.3. OProfileUI - A GUI for OProfile
3.4.4. Documentation
3.5. Sysprof
3.5.1. Setup
3.5.2. Basic Usage
3.5.3. Documentation
3.6. LTTng (Linux Trace Toolkit, next generation)
3.6.1. Setup
3.6.2. Collecting and Viewing Traces
3.6.3. Documentation
3.7. blktrace
3.7.1. Setup
3.7.2. Basic Usage
3.7.3. Documentation
4. Real-World Examples
4.1. Slow Write Speed on Live Images