aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/Kconfig.debug
diff options
context:
space:
mode:
authorPekka Paalanen <pq@iki.fi>2008-05-12 15:20:56 -0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-23 15:16:38 -0400
commit86069782d62e731b4835a0cf8eb7d1d0e17cf306 (patch)
treee6268f782a96d7ce808f354b83be69d4b349659d /arch/x86/Kconfig.debug
parent8f0f996e80b980fba07d11961d96a5fefb60976a (diff)
x86: add a list for custom page fault handlers.
Provides kernel modules a way to register custom page fault handlers. On every page fault this will call a list of registered functions. The functions may handle the fault and force do_page_fault() to return immediately. This functionality is similar to the now removed page fault notifiers. Custom page fault handlers are used by debugging and reverse engineering tools. Mmiotrace is one such tool and a patch to add it into the tree will follow. The custom page fault handlers are called earlier in do_page_fault() than the page fault notifiers were. Signed-off-by: Pekka Paalanen <pq@iki.fi> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/Kconfig.debug')
-rw-r--r--arch/x86/Kconfig.debug8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/Kconfig.debug b/arch/x86/Kconfig.debug
index ac1e31ba4795..9431a8399844 100644
--- a/arch/x86/Kconfig.debug
+++ b/arch/x86/Kconfig.debug
@@ -168,6 +168,14 @@ config IOMMU_LEAK
168 Add a simple leak tracer to the IOMMU code. This is useful when you 168 Add a simple leak tracer to the IOMMU code. This is useful when you
169 are debugging a buggy device driver that leaks IOMMU mappings. 169 are debugging a buggy device driver that leaks IOMMU mappings.
170 170
171config PAGE_FAULT_HANDLERS
172 bool "Custom page fault handlers"
173 depends on DEBUG_KERNEL
174 help
175 Allow the use of custom page fault handlers. A kernel module may
176 register a function that is called on every page fault. Custom
177 handlers are used by some debugging and reverse engineering tools.
178
171# 179#
172# IO delay types: 180# IO delay types:
173# 181#