Please note that User Registration has been temporarily disabled due to a recent increase in automated registrations. If anyone needs an account, please request one here: RequestAccount. Thanks for your patience!--Wmat (talk)
Please email User:Wmat if you experience any issues with the Request Account form.

Difference between revisions of "Measuring Function Duration with FTrace"

From eLinux.org
Jump to: navigation, search
(Author: add spam-resitant e-mail)
(Abstract: add abstract)
Line 5: Line 5:
  
 
== Abstract ==
 
== Abstract ==
 +
FTrace is a relatively new kernel tool for tracing function execution in the Linux kernel.
 +
Recently, FTrace supports the ability to trace function exit in addition to function entry.
 +
This allows for measurement of function duration, which adds an incredibly powerful tool for
 +
finding time-consuming areas of kernel execution.  In this paper, the current state of the
 +
art for measuring function duration with FTrace is described.  This includes recent work to
 +
add a new capability to filter the trace data by function duration, and tools for analyzing
 +
kernel function call graphs and visualizing kernel boot time execution.
 +
 
== Introduction ==
 
== Introduction ==
 
== Overview of FTrace operation ==
 
== Overview of FTrace operation ==

Revision as of 17:42, 22 April 2009

Author

Tim Bird
Sony Corporation of America
tim dot bird (at) am dot sony dot com

Abstract

FTrace is a relatively new kernel tool for tracing function execution in the Linux kernel. Recently, FTrace supports the ability to trace function exit in addition to function entry. This allows for measurement of function duration, which adds an incredibly powerful tool for finding time-consuming areas of kernel execution. In this paper, the current state of the art for measuring function duration with FTrace is described. This includes recent work to add a new capability to filter the trace data by function duration, and tools for analyzing kernel function call graphs and visualizing kernel boot time execution.

Introduction

Overview of FTrace operation

  • ring buffer
  • Measuring function duration
    • hooking function exit using only mcount

Using FTrace