public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Enable tracing only for one function and its children?
@ 2018-11-16 22:37 Timur Tabi
  2018-11-16 22:49 ` Keith Busch
  0 siblings, 1 reply; 2+ messages in thread
From: Timur Tabi @ 2018-11-16 22:37 UTC (permalink / raw)
  To: lkml

Is there a way to enable ftrace tracing only for one specific function
and all the functions it calls?  Then when the function returns,
disable tracing until the next time?

When I pass the function name only to set_ftrace_filter, it literally
only traces that function, which doesn't help me.  I tried setting
writing "nvidia_ioctl:traceon" to set_ftrace_filter, but that just
gave me an "invalid argument" error.  And even if that did work, I
don't know what function to use for :traceoff.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-11-16 22:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-16 22:37 Enable tracing only for one function and its children? Timur Tabi
2018-11-16 22:49 ` Keith Busch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox