From: David Smith <dsmith@redhat.com>
To: ananth@in.ibm.com
Cc: Christoph Hellwig <hch@infradead.org>,
linux-kernel@vger.kernel.org, rusty@rustcorp.com.au,
prasanna@in.ibm.com, anil.s.keshavamurthy@intel.com,
davem@davemloft.net
Subject: Re: [PATCH] module interface improvement for kprobes
Date: Tue, 08 Aug 2006 10:39:18 -0500 [thread overview]
Message-ID: <1155051558.21699.26.camel@dhcp-2.hsv.redhat.com> (raw)
In-Reply-To: <20060807045213.GA12898@in.ibm.com>
On Mon, 2006-08-07 at 10:22 +0530, Ananth N Mavinakayanahalli wrote:
> On Fri, Aug 04, 2006 at 04:57:11PM +0100, Christoph Hellwig wrote:
... stuff deleted ...
> > That beeing said we should probably change the kprobes interface to
> > automatically do the kallsysms name lookup for the caller. It would simplify
> > the kprobes interface and allow us to get rid of the kallsyms_lookup_name
> > export that doesn't have a valid use except for kprobes. With
> > that change the example kprobe would look like:
>
> This sounds like a good idea. How about we still allow .addr atleast for
> users who know what they are doing and would want to just specify a text
> addr?
>
> > static struct kprobe kp = {
> .addr = <addr>
>
> > .pre_handler = handler_pre,
> > .post_handler = handler_post,
> > .fault_handler = handler_fault,
> > .symbol_name = "do_fork",
> > };
>
> The symbol_name lookup can then be done when only when .addr is non-NULL.
>
> That said, I have a working patch I was planning to post today that
> introduces the KPROBE_ADDR macro that abstracts out the architecture-specific
> artefacts of getting the actual text address to probe, so kprobe modules
> can be made more portable. I was envisaging this to be used by the module
> writer, but with your idea, this could live in-kernel itself.
>
> I'll cook up a patch for this in a short while.
>
> Ananth
This does seem reasonable, so I'll abandon my patch and wait for the new
kprobes interface.
Ananth, thanks for helping out.
--
David Smith
dsmith@redhat.com
Red Hat, Inc.
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)
next prev parent reply other threads:[~2006-08-08 15:42 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-04 15:17 David Smith
2006-08-04 15:57 ` Christoph Hellwig
2006-08-04 18:30 ` David Smith
2006-08-05 11:35 ` Christoph Hellwig
2006-08-05 21:10 ` Frank Ch. Eigler
2006-08-07 4:52 ` Ananth N Mavinakayanahalli
2006-08-07 5:05 ` Ananth N Mavinakayanahalli
2006-08-08 15:39 ` David Smith [this message]
2006-08-04 16:00 ` Randy.Dunlap
2006-08-04 19:51 ` David Smith
2006-08-05 2:28 ` Rusty Russell
2006-08-04 23:00 Chuck Ebbert
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=1155051558.21699.26.camel@dhcp-2.hsv.redhat.com \
--to=dsmith@redhat.com \
--cc=ananth@in.ibm.com \
--cc=anil.s.keshavamurthy@intel.com \
--cc=davem@davemloft.net \
--cc=hch@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=prasanna@in.ibm.com \
--cc=rusty@rustcorp.com.au \
/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
Powered by JetHome