Yocto Project Profiling and Tracing Manual

Scott Rifenbark

Scotty's Documentation Services, INC

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.

Manual Notes

  • This version of the Yocto Project Profiling and Tracing Manual is for the 2.5 release of the Yocto Project. To be sure you have the latest version of the manual for this release, use the manual from the Yocto Project documentation page.

  • For manuals associated with other releases of the Yocto Project, go to the Yocto Project documentation page and use the drop-down "Active Releases" button and choose the manual associated with the desired Yocto Project.

  • To report any inaccuracies or problems with this manual, send an email to the Yocto Project discussion group at yocto@yoctoproject.com or log into the freenode #yocto channel.

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 2.0 October 2015
Released with the Yocto Project 2.0 Release.
Revision 2.1 April 2016
Released with the Yocto Project 2.1 Release.
Revision 2.2 October 2016
Released with the Yocto Project 2.2 Release.
Revision 2.3 May 2017
Released with the Yocto Project 2.3 Release.
Revision 2.4 October 2017
Released with the Yocto Project 2.4 Release.
Revision 2.5 April 2018
Released with the Yocto Project 2.5 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. Sysprof
3.4.1. Setup
3.4.2. Basic Usage
3.4.3. Documentation
3.5. LTTng (Linux Trace Toolkit, next generation)
3.5.1. Setup
3.5.2. Collecting and Viewing Traces
3.5.3. Documentation
3.6. blktrace
3.6.1. Setup
3.6.2. Basic Usage
3.6.3. Documentation
4. Real-World Examples
4.1. Slow Write Speed on Live Images