From: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
To: Masami Hiramatsu <mhiramat@redhat.com>
Cc: Ingo Molnar <mingo@elte.hu>, Steven Rostedt <rostedt@goodmis.org>,
lkml <linux-kernel@vger.kernel.org>,
systemtap <systemtap@sources.redhat.com>,
kvm <kvm@vger.kernel.org>,
DLE <dle-develop@lists.sourceforge.net>,
Christoph Hellwig <hch@infradead.org>,
Frederic Weisbecker <fweisbec@gmail.com>,
Tom Zanussi <tzanussi@gmail.com>
Subject: Re: [PATCH -tip v9 7/7] tracing: add kprobe-based event tracer
Date: Fri, 5 Jun 2009 14:06:13 +0530 [thread overview]
Message-ID: <20090605083613.GC4164@in.ibm.com> (raw)
In-Reply-To: <20090602003754.29255.37212.stgit@localhost.localdomain>
On Mon, Jun 01, 2009 at 08:37:54PM -0400, Masami Hiramatsu wrote:
> Add kprobes-based event tracer on ftrace.
>
> This tracer is similar to the events tracer which is based on Tracepoint
> infrastructure. Instead of Tracepoint, this tracer is based on kprobes(kprobe
> and kretprobe). It probes anywhere where kprobes can probe(this means, all
> functions body except for __kprobes functions).
>
> Similar to the events tracer, this tracer doesn't need to be activated via
> current_tracer, instead of that, just set probe points via
> /sys/kernel/debug/tracing/kprobe_events. And you can set filters on each
> probe events via /sys/kernel/debug/tracing/events/kprobes/<EVENT>/filter.
>
> This tracer supports following probe arguments for each probe.
>
> %REG : Fetch register REG
> sN : Fetch Nth entry of stack (N >= 0)
> @ADDR : Fetch memory at ADDR (ADDR should be in kernel)
> @SYM[+|-offs] : Fetch memory at SYM +|- offs (SYM should be a data symbol)
> aN : Fetch function argument. (N >= 0)
> rv : Fetch return value.
> ra : Fetch return address.
> +|-offs(FETCHARG) : fetch memory at FETCHARG +|- offs address.
>
> See Documentation/trace/kprobes.txt for details.
>
> Changes from v8:
> - Fix wrong argument offsets in format.
> - Remove EVENT_TRACING selection in Kconfig.
> - Fix debugfs file path.
>
> Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
> Cc: Christoph Hellwig <hch@infradead.org>
> Cc: Steven Rostedt <rostedt@goodmis.org>
> Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
> Cc: Ingo Molnar <mingo@elte.hu>
> Cc: Frederic Weisbecker <fweisbec@gmail.com>
> Cc: Tom Zanussi <tzanussi@gmail.com>
The kprobe usage look fine.
Tested on x86 and works fine too! Great work, Masami.
Acked-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
prev parent reply other threads:[~2009-06-05 8:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-02 0:37 [PATCH -tip v9 0/7] tracing: kprobe-based event tracer and x86 instruction decoder Masami Hiramatsu
2009-06-02 0:37 ` [PATCH -tip v9 1/7] x86: instruction decoder API Masami Hiramatsu
2009-06-02 0:37 ` [PATCH -tip v9 2/7] x86: x86 instruction decoder build-time selftest Masami Hiramatsu
2009-06-02 0:37 ` [PATCH -tip v9 3/7] kprobes: checks probe address is instruction boudary on x86 Masami Hiramatsu
2009-06-05 6:52 ` Ananth N Mavinakayanahalli
2009-06-02 0:37 ` [PATCH -tip v9 4/7] kprobes: cleanup fix_riprel() using insn decoder " Masami Hiramatsu
2009-06-02 0:37 ` [PATCH -tip v9 5/7] x86: add pt_regs register and stack access APIs Masami Hiramatsu
2009-06-02 0:37 ` [PATCH -tip v9 6/7] tracing: ftrace dynamic ftrace_event_call support Masami Hiramatsu
2009-06-02 0:37 ` [PATCH -tip v9 7/7] tracing: add kprobe-based event tracer Masami Hiramatsu
2009-06-05 8:36 ` Ananth N Mavinakayanahalli [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=20090605083613.GC4164@in.ibm.com \
--to=ananth@in.ibm.com \
--cc=dle-develop@lists.sourceforge.net \
--cc=fweisbec@gmail.com \
--cc=hch@infradead.org \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mhiramat@redhat.com \
--cc=mingo@elte.hu \
--cc=rostedt@goodmis.org \
--cc=systemtap@sources.redhat.com \
--cc=tzanussi@gmail.com \
/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