Re: [PATCH v2] x86: Add a list for custom page fault handlers.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Pekka Paalanen
Date: Sunday, February 3, 2008 - 2:40 pm

On Sun, 3 Feb 2008 08:03:21 +0100
Ingo Molnar <mingo@elte.hu> wrote:


Good to hear!

I've made some fixes since my last mmiotrace patch (v2). Rewritten things
to use lookup_address(), added EXPORT_SYMBOL(lookup_address) into
pageattr.c to make it work (this hopefully fixed the undefined symbol
'init_mm' on x86-32), and fixed relay-buffer-full flags on SMP.


What does this mean in practice? It should be able to call into a module,
so the only thing I can come up with is a single settable function
pointer. Just like I proposed in patch v2, but a function pointer instead
of a list. Is this what you and Arjan suggest?
We are talking about the hook in do_page_fault(), right?


I was waiting for someone to comment on that, I didn't know what was the
proper place. I'll move it into there.


Then I need a way to clear the relay buffers at some point. Currently
they get cleared only on module unload. Maybe preferably also allocate
and deallocate them dynamically. I've no idea how to do this yet, any
pointers to examples?

Hmm, I guess relay buffers could be allocated on the first intercepted
call to ioremap, but then the userspace could not be started before
hand, and at that point it is too late.

Making it build-in-able will take so much time that I'd prefer to aim
it for 2.6.26.


Yikes. Like I replied to Arjan, it looks daunting.


Thanks, I'll do what I can. When do you need the final (as for 2.6.25)
mmiotrace patch, or is it going in as v2 and then we fix it in RCs?

-- 
Pekka Paalanen
http://www.iki.fi/pq/
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] x86: Add a list for custom page fault handlers., Pekka Paalanen, (Sun Jan 27, 9:52 am)
[RFC PATCH] x86: mmiotrace - trace memory mapped IO, Pekka Paalanen, (Sun Jan 27, 10:55 am)
Re: [PATCH] x86: Add a list for custom page fault handlers., Harvey Harrison, (Tue Jan 29, 7:28 pm)
Re: [PATCH] x86: Add a list for custom page fault handlers., Harvey Harrison, (Tue Jan 29, 7:34 pm)
Re: [PATCH] x86: Add a list for custom page fault handlers., Pekka Paalanen, (Wed Jan 30, 11:08 am)
Re: [PATCH] x86: Add a list for custom page fault handlers., Arjan van de Ven, (Wed Jan 30, 11:20 am)
Re: [RFC PATCH] x86: mmiotrace - trace memory mapped IO, Pekka Paalanen, (Wed Jan 30, 3:39 pm)
[PATCH v2] x86: Add a list for custom page fault handlers., Pekka Paalanen, (Thu Jan 31, 9:02 am)
[RFC PATCH v2] x86: mmiotrace - trace memory mapped IO, Pekka Paalanen, (Thu Jan 31, 9:16 am)
Re: [RFC PATCH v2] x86: mmiotrace - trace memory mapped IO, Arjan van de Ven, (Thu Jan 31, 9:29 am)
Re: [RFC PATCH v2] x86: mmiotrace - trace memory mapped IO, Pekka Paalanen, (Sun Feb 3, 12:21 am)
Re: [PATCH v2] x86: Add a list for custom page fault handlers., Pekka Paalanen, (Sun Feb 3, 2:40 pm)
[PATCH 1/4] x86 mmiotrace: use lookup_address(), Pekka Paalanen, (Tue Feb 5, 1:28 pm)
[PATCH 3/4] x86 mmiotrace: comment about user space ABI, Pekka Paalanen, (Tue Feb 5, 1:31 pm)
[PATCH 4/4] x86 mmiotrace: move files into arch/x86/mm/, Pekka Paalanen, (Tue Feb 5, 1:39 pm)
Re: [PATCH 1/4] x86 mmiotrace: use lookup_address(), Christoph Hellwig, (Tue Feb 5, 10:00 pm)
Re: [PATCH 1/4] x86 mmiotrace: use lookup_address(), Ingo Molnar, (Thu Feb 7, 5:52 am)
Re: [PATCH 4/4] x86 mmiotrace: move files into arch/x86/mm/, Christoph Hellwig, (Thu Feb 7, 5:56 am)
[PATCH] x86 mmiotrace: Use percpu instead of arrays., Pekka Paalanen, (Sat Feb 9, 10:53 am)