Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Embedded Linux Projects Using Yocto Project Cookbook

You're reading from  Embedded Linux Projects Using Yocto Project Cookbook

Product type Book
Published in Mar 2015
Publisher
ISBN-13 9781784395186
Pages 324 pages
Edition 1st Edition
Languages
Author (1):
Alex Gonzalez Alex Gonzalez
Profile icon Alex Gonzalez

Table of Contents (13) Chapters

Embedded Linux Projects Using Yocto Project Cookbook
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
The Build System The BSP Layer The Software Layer Application Development Debugging, Tracing, and Profiling Index

Using OProfile


OProfile is a statistical profiler released under the GNU GPL license. The version included in the Yocto 1.7 release is a system-wide profiler, which uses the legacy profiling mode with a kernel module to sample hardware performance counters data and a user space daemon to write them to a file. More recent Yocto releases use newer versions that use the performance events subsystem, which we introduced in the Using the kernel's performance counters recipe, so they are able to profile processes and workloads as well.

The version included in Yocto 1.7 consists of a kernel module, a user space daemon to collect sample data, and several profiling tools to analyze captured data.

This recipe will focus on the OProfile version included in the 1.7 Yocto release.

Getting ready

To include OProfile in your system, add the following to your conf/local.conf file:

 IMAGE_INSTALL_append += " oprofile"

OProfile is also part of the tools-profile image feature, so you can also add it with:

EXTRA_IMAGE_FEATURES...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}