public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Eugene Teo <eugeneteo@kernel.sg>
To: Ingo Molnar <mingo@elte.hu>
Cc: linux-kernel@vger.kernel.org,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Andrew Morton <akpm@zip.com.au>,
	Steven Rostedt <rostedt@goodmis.org>
Subject: Re: [12/19] ftrace: function tracer
Date: Sun, 10 Feb 2008 17:53:53 +0800	[thread overview]
Message-ID: <20080210095353.GA8451@kernel.sg> (raw)
In-Reply-To: <20080210072046.GM4100@elte.hu>

<quote sender="Ingo Molnar">
> From: Steven Rostedt <srostedt@redhat.com>
> 
> This is a simple trace that uses the ftrace infrastructure. It is
> designed to be fast and small, and easy to use. It is useful to
> record things that happen over a very short period of time, and
> not to analyze the system in general.
> 
>  Updates:
> 
>   available_tracers
>      "function" is added to this file.

$ cat available_tracers 
wakeup irqsoff ftrace sched_switch none
               ^^^^^^

I believe "function" refers to "ftrace"?

[...]
>  echo "symonly" > /debugfs/tracing/iter_ctrl
> 
> tracer:
> [   81.479913] CPU 0: bash:3154 register_ftrace_function+0x5f/0x66 <-- _spin_unlock_irqrestore+0xe/0x5a
> [   81.479913] CPU 0: bash:3154 _spin_unlock_irqrestore+0x3e/0x5a <-- sub_preempt_count+0xc/0x7a
> [   81.479913] CPU 0: bash:3154 sub_preempt_count+0x30/0x7a <-- in_lock_functions+0x9/0x24
> [   81.479914] CPU 0: bash:3154 vfs_write+0x11d/0x155 <-- dnotify_parent+0x12/0x78
> [   81.479914] CPU 0: bash:3154 dnotify_parent+0x2d/0x78 <-- _spin_lock+0xe/0x70
> [   81.479914] CPU 0: bash:3154 _spin_lock+0x1b/0x70 <-- add_preempt_count+0xe/0x77
> [   81.479914] CPU 0: bash:3154 add_preempt_count+0x3e/0x77 <-- in_lock_functions+0x9/0x24

I can't seem to echo "symonly" to iter_ctrl.

kerndev: /sys/kernel/debug/tracing$ cat current_tracer 
ftrace
kerndev: /sys/kernel/debug/tracing$ cat tracing_enabled 
1
kerndev: /sys/kernel/debug/tracing$ cat iter_ctrl 
noprint-parent nosym-offset nosym-addr noverbose 
kerndev: /sys/kernel/debug/tracing$ echo symonly > iter_ctrl 
kerndev: /sys/kernel/debug/tracing$ cat iter_ctrl 
noprint-parent nosym-offset nosym-addr noverbose 

How did you get the above output?

Thanks,
Eugene

  reply	other threads:[~2008-02-10  9:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-10  7:20 [12/19] ftrace: function tracer Ingo Molnar
2008-02-10  9:53 ` Eugene Teo [this message]
2008-02-10 15:19   ` Ingo Molnar

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=20080210095353.GA8451@kernel.sg \
    --to=eugeneteo@kernel.sg \
    --cc=akpm@zip.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=rostedt@goodmis.org \
    --cc=torvalds@linux-foundation.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox