lkml.org 
[lkml]   [2008]   [Aug]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] ftrace: support tracing functions in one module

On Sun, 3 Aug 2008, Ming Lei wrote:

> Hi,
>
> IMO, ftrace is a very good tools, which can monitor almost all
> functions calling
> in the running kernel. The traced result is very complete and intact.
> But it seems
> too large to grasp the interested content. For example, one may only
> have interest in
> functions calling in usbcore.ko, but he must trace all the functions
> calling in the
> kernel, so the tracing result is too large to use it.
>
> Could you add the support of tracing functions in one module only to ftrace?

Look at the set_ftrace_filter in ftrace.txt. You can pick and choose which
functions to trace. All the functions that can be traced is in
available_filter_functions in the debugfs/tracing directory.

Note, the functions must execute at least once before they can be
recorded.

-- Steve



\
 
 \ /
  Last update: 2008-08-03 16:47    [W:0.069 / U:0.900 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site