login
Header Space

 
 

Re: [RFC] mmiotrace full patch, preview 1

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Pekka Paalanen <pq@...>
Cc: Ingo Molnar <mingo@...>, Christoph Hellwig <hch@...>, Arjan van de Ven <arjan@...>, Pavel Roskin <proski@...>, Steven Rostedt <rostedt@...>, Peter Zijlstra <a.p.zijlstra@...>, <linux-kernel@...>
Date: Tuesday, February 26, 2008 - 1:20 pm

Hey, Pekka,

A couple of little things I noticed...


Should that text read something like:

	if (condition != DIE_TRAP || !ctx->active)

Presumably you won't be active if something else is going wrong, but one
never knows.


That only checks the first page; if the probed region partially overlaps
another one found later in memory, the registration will succeed.

Maybe you want to decrement kmmio_count if you decide to return -EEXIST
(or hold off on the increment until after the test)?

In general, I worry about what happens if an interrupt handler generates
traced MMIO traffic while a fault handler is active.  It looks a lot
like the "all hell breaks loose" scenario mentioned in the comments.  Is
there some way of preventing that which I missed?  Otherwise, maybe,
should the ioremap() wrappers take an additional argument, being an IRQ
to disable while trace handlers are active?

jon
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] mmiotrace full patch, preview 1, Pekka Paalanen, (Sun Feb 24, 1:03 pm)
Re: [RFC] mmiotrace full patch, preview 1 , Jonathan Corbet, (Tue Feb 26, 1:20 pm)
Re: [RFC] mmiotrace full patch, preview 1, Pekka Paalanen, (Wed Feb 27, 4:28 pm)
Re: [RFC] mmiotrace full patch, preview 1, Andrew Morton, (Mon Feb 25, 6:49 pm)
Re: [RFC] mmiotrace full patch, preview 1, Pekka Paalanen, (Tue Feb 26, 4:02 pm)
Re: [RFC] mmiotrace full patch, preview 1, Christoph Hellwig, (Mon Feb 25, 7:34 pm)
Re: [RFC] mmiotrace full patch, preview 1, Andy Whitcroft, (Tue Feb 26, 6:21 am)
Re: [RFC] mmiotrace full patch, preview 1, Ingo Molnar, (Tue Feb 26, 6:49 am)
Re: [RFC] mmiotrace full patch, preview 1, Andy Whitcroft, (Tue Feb 26, 11:20 am)
Re: [RFC] mmiotrace full patch, preview 1, Pavel Roskin, (Mon Feb 25, 10:42 pm)
Re: [RFC] mmiotrace full patch, preview 1, Christoph Hellwig, (Tue Feb 26, 1:10 pm)
Re: [RFC] mmiotrace full patch, preview 1, Andy Whitcroft, (Tue Feb 26, 4:57 am)
Re: [RFC] mmiotrace full patch, preview 1, Sam Ravnborg, (Sun Feb 24, 1:59 pm)
speck-geostationary