All of lore.kernel.org
 help / color / mirror / Atom feed
* memory range R/W triggered breakpoints in kernel ?
@ 2006-03-05 17:00 Mateusz Berezecki
  2006-03-05 23:16 ` Benjamin LaHaise
  0 siblings, 1 reply; 5+ messages in thread
From: Mateusz Berezecki @ 2006-03-05 17:00 UTC (permalink / raw)
  To: Linux Kernel Mailing List

Hello List,

I was thinking about writing some memory R/W access monitor. The only
concern I'm
having is whether it is doable, or are there any already existing and
working solutions like
that for Linux?

The initial concept was to set up some special page fault handler and
mark monitored
memory pages as non present. The monitor pagefault handler would check
if the page
is within monitored location and if yes it would switch to
singlestepping mode and
step the instruction which invoked the pagefault and log the value
which was read/written from
certain address. Afterwards the whole page would be marked as non present again.

Is it possible to succeed with such an approach? Would it work for
memory range mapped to some devices?



kind regards,
Mateusz Berezecki

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-03-06 22:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-05 17:00 memory range R/W triggered breakpoints in kernel ? Mateusz Berezecki
2006-03-05 23:16 ` Benjamin LaHaise
2006-03-05 23:31   ` Mateusz Berezecki
2006-03-05 23:32     ` Benjamin LaHaise
2006-03-06 22:00       ` Pavel Machek

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.