mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Vamsi Krishna S ." <vamsi@in.ibm.com>
To: Rusty Lynch <rusty@linux.co.intel.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Is there a way to interrupt MMIO with kprobes/ltt/etc...
Date: Fri, 8 Nov 2002 13:53:27 +0530	[thread overview]
Message-ID: <20021108135327.A12978@in.ibm.com> (raw)
In-Reply-To: <009e01c286d8$2a44e010$77d40a0a@amr.corp.intel.com>; from rusty@linux.co.intel.com on Fri, Nov 08, 2002 at 03:40:58AM +0000

On Fri, Nov 08, 2002 at 03:40:58AM +0000, Rusty Lynch wrote:
> I have been looking into the possible ways a fault injection tool could be
> implemented on the available tools/hooks in the 2.5 kernel.  I can see how
> kprobes would help by allowing me to setup handlers when a specific address
> is executed, but what about when a specific memory mapped IO address is
> touched or looked at?
> 
> I know there has been a lot of activity on kprobes, LTT, and others (isn't
> there something else?).  Do any of these patches allow a handler to be
> called just before some MMIO is accessed?  Messing with architecture
> specific debug registers seems problematic since it makes the solution
> architecture specific and the number of watch points is pretty limited.
> 
You could do this with the interface provided by kwatchpoints patch [1]
without directly mucking with debug registers. The interface is simple:

int register_kwatch(unsigned long addr, u8 length, u8 type,
                kwatch_handler_t handler)

If you don't want to use debug registers or if they are not enough,
only other possibility I can think of is to find all code locations 
where the MMIO space of interest is touched and put execution 
probes there.

[1] You will need these two patches:
http://marc.theaimsgroup.com/?l=linux-kernel&m=103528454215523&w=2
http://marc.theaimsgroup.com/?l=linux-kernel&m=103528454015520&w=2

Cheers,
Vamsi.
-- 
Vamsi Krishna S.
Linux Technology Center,
IBM Software Lab, Bangalore.
Ph: +91 80 5044959
Internet: vamsi@in.ibm.com

      reply	other threads:[~2002-11-08  8:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-08  3:37 Rusty Lynch
2002-11-08  8:23 ` Vamsi Krishna S . [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=20021108135327.A12978@in.ibm.com \
    --to=vamsi@in.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rusty@linux.co.intel.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

all inboxes | Powered by JetHome®