ia64_do_page_fault is a path critical for system performance. The code to call
notify_die() should not be compiled into that critical path if the system
is not configured to use KPROBES.
Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
Index: linux-2.6.13-rc7/arch/ia64/mm/fault.c
===================================================================
--- linux-2.6.13-rc7.orig/arch/ia64/mm/fault.c 2005-08-23 20:39:14.000000000
-0700
+++ linux-2.6.13-rc7/arch/ia64/mm/fault.c 2005-08-25 13:04:57.000000000
-0700
@@ -103,12 +103,16 @@ ia64_do_page_fault (unsigned long addres
goto bad_area_no_up;
#endif
+#ifdef CONFIG_KPROBES
/*
- * This is to handle the kprobes on user space access instructions
+ * This is to handle the kprobes on user space access instructions.
+ * This is a path criticial for system performance. So only
+ * process this notifier if we are compiled with kprobes support.
*/
if (notify_die(DIE_PAGE_FAULT, "page fault", regs, code, TRAP_BRKPT,
SIGSEGV) == NOTIFY_STOP)
return;
+#endif
down_read(&mm->mmap_sem);
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html