public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Only process_die notifier in ia64_do_page_fault if KPROBES
@ 2005-08-25 20:14 Christoph Lameter
  2005-08-30 23:05 ` [PATCH] Only process_die notifier in ia64_do_page_fault if KPROBES is configured Luck, Tony
  0 siblings, 1 reply; 8+ messages in thread
From: Christoph Lameter @ 2005-08-25 20:14 UTC (permalink / raw)
  To: linux-ia64; +Cc: linux-mm, prasanna

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 <clameter@sgi.com>

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);
 

^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <200508262246.j7QMkEoT013490@linux.jf.intel.com>]

end of thread, other threads:[~2005-09-19 18:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-25 20:14 [PATCH] Only process_die notifier in ia64_do_page_fault if KPROBES Christoph Lameter
2005-08-30 23:05 ` [PATCH] Only process_die notifier in ia64_do_page_fault if KPROBES is configured Luck, Tony
2005-08-30 23:38   ` Andi Kleen
2005-08-30 23:54     ` [PATCH] Only process_die notifier in ia64_do_page_fault if Christoph Lameter
2005-08-31  0:05       ` [PATCH] Only process_die notifier in ia64_do_page_fault if KPROBES is configured Andi Kleen
2005-08-30 23:56     ` [PATCH] Only process_die notifier in ia64_do_page_fault if David S. Miller
     [not found] <200508262246.j7QMkEoT013490@linux.jf.intel.com>
2005-08-26 23:05 ` Re:[PATCH] Only process_die notifier in ia64_do_page_fault if KPROBES Christoph Lameter
2005-08-27  0:24   ` [PATCH] Only process_die notifier in ia64_do_page_fault if KPROBES is configured Andi Kleen
2005-08-30  0:19     ` Rusty Lynch
2005-08-30  3:28       ` [PATCH] Only process_die notifier in ia64_do_page_fault if Christoph Lameter
2005-08-30 11:18       ` [PATCH] Only process_die notifier in ia64_do_page_fault if KPROBES is configured Matthew Wilcox
2005-09-19 18:22         ` [PATCH] Only process_die notifier in ia64_do_page_fault if Christoph Lameter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox