All of lore.kernel.org
 help / color / mirror / Atom feed
From: Keith Busch <keith.busch@intel.com>
To: Timur Tabi <timur@kernel.org>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: Re: Enable tracing only for one function and its children?
Date: Fri, 16 Nov 2018 15:49:26 -0700	[thread overview]
Message-ID: <20181116224925.GE14630@localhost.localdomain> (raw)
In-Reply-To: <CAOZdJXXYPeb90DzGnHr+c7jhfbZA7z7wiYMzDxgMP4nmuoYaiQ@mail.gmail.com>

On Fri, Nov 16, 2018 at 04:37:55PM -0600, Timur Tabi wrote:
> 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 think you're looking for the set_graph_function option for the
function_graph tracer.

      reply	other threads:[~2018-11-16 22:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-16 22:37 Enable tracing only for one function and its children? Timur Tabi
2018-11-16 22:49 ` Keith Busch [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181116224925.GE14630@localhost.localdomain \
    --to=keith.busch@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=timur@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.