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

2008-01-31 Thread Ingo Molnar
* Pekka Paalanen <[EMAIL PROTECTED]> wrote: > > static inline int notify_page_fault(struct pt_regs *regs) > > { > > #ifdef CONFIG_KPROBES > > @@ -588,6 +636,9 @@ void __kprobes do_page_fault(struct pt_regs *regs, > > unsigned long error_code) > > if (notify_page_fault(regs)) > >

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

2008-01-30 Thread Arjan van de Ven
On Sun, 27 Jan 2008 18:52:38 +0200 Pekka Paalanen <[EMAIL PROTECTED]> wrote: > From: Pekka Paalanen <[EMAIL PROTECTED]> > > Provides kernel modules a way to register custom page fault handlers. > On every page fault, except those handled in vmalloc_fault(), this > will call a list of registered f

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

2008-01-30 Thread Pekka Paalanen
On Tue, 29 Jan 2008 18:34:13 -0800 Harvey Harrison <[EMAIL PROTECTED]> wrote: > Sorry, attached the wrong version to my last message missing the > kdebug.h hunk. This is still just a straight port to current x86.git. Wow, thanks. I have to say I already did this for myself, but I had to change

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

2008-01-29 Thread Harvey Harrison
From: Pekka Paalanen <[EMAIL PROTECTED]> Provides kernel modules a way to register custom page fault handlers. On every page fault, except those handled in vmalloc_fault(), this will call a list of registered functions. The functions may handle the fault and force do_page_fault() to return immedia

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

2008-01-29 Thread Harvey Harrison
From: Pekka Paalanen <[EMAIL PROTECTED]> Provides kernel modules a way to register custom page fault handlers. On every page fault, except those handled in vmalloc_fault(), this will call a list of registered functions. The functions may handle the fault and force do_page_fault() to return immedia

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

2008-01-27 Thread Peter Zijlstra
On Sun, 2008-01-27 at 18:52 +0200, Pekka Paalanen wrote: > +void unregister_page_fault_handler(struct pf_handler *old_pfh) > +{ > + might_sleep(); > + spin_lock(&pf_handlers_writer); > + hlist_del_rcu(&old_pfh->hlist); > + spin_unlock(&pf_handlers_writer); > + synchronize_rcu(

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

2008-01-27 Thread Ingo Molnar
* Pekka Paalanen <[EMAIL PROTECTED]> wrote: > arch/x86/Kconfig.debug |9 ++ > arch/x86/mm/fault_32.c | 64 > ++ > arch/x86/mm/fault_64.c | 64 > ++ > include/asm-x86/kdebug.h |9 ++

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

2008-01-27 Thread Pekka Paalanen
From: Pekka Paalanen <[EMAIL PROTECTED]> Provides kernel modules a way to register custom page fault handlers. On every page fault, except those handled in vmalloc_fault(), this will call a list of registered functions. The functions may handle the fault and force do_page_fault() to return immedia