[PATCH] kmemcheck: use set_memory_4k() instead of disabling PSE

From: Vegard Nossum
Date: Sat May 10 2008 - 11:33:27 EST


Hi,

With this, we reduce the overall impact of kmemcheck by reverting some
earlier, now unnecessary, changes:

Documentation/kmemcheck.txt | 101 +++++
MAINTAINERS | 8 +
arch/x86/Kconfig.debug | 87 ++++
arch/x86/kernel/Makefile | 2 +
- arch/x86/kernel/cpu/common.c | 7 +
arch/x86/kernel/entry_32.S | 8 +-
arch/x86/kernel/entry_64.S | 4 +-
- arch/x86/kernel/head_32.S | 2 +-
- arch/x86/kernel/kmemcheck.c | 964 ++++++++++++++++++++++++++++++++++++++++++
+ arch/x86/kernel/kmemcheck.c | 963 ++++++++++++++++++++++++++++++++++++++++++
arch/x86/kernel/process.c | 2 +-
arch/x86/kernel/process_32.c | 4 +-
arch/x86/kernel/process_64.c | 12 +-
arch/x86/kernel/traps_32.c | 18 +-
arch/x86/kernel/traps_64.c | 16 +-
- arch/x86/mm/fault.c | 25 +-
- arch/x86/mm/init_32.c | 2 +-
+ arch/x86/mm/fault.c | 35 ++
include/asm-x86/kdebug.h | 3 +-
include/asm-x86/kmemcheck.h | 30 ++
include/asm-x86/pgtable.h | 4 +-
include/asm-x86/pgtable_32.h | 6 +
include/asm-x86/pgtable_64.h | 6 +
include/asm-x86/string_32.h | 8 +
include/asm-x86/string_64.h | 1 +
include/linux/gfp.h | 3 +-
include/linux/kmemcheck.h | 61 +++
include/linux/mm_types.h | 4 +
include/linux/slab.h | 7 +
include/linux/slab_def.h | 81 ++++
init/main.c | 2 +
kernel/fork.c | 16 +-
kernel/sysctl.c | 12 +
mm/Makefile | 2 +-
mm/kmemcheck.c | 97 +++++
mm/slab.c | 101 +----
mm/slub.c | 17 +-
- 35 files changed, 1601 insertions(+), 122 deletions(-)
+ 32 files changed, 1605 insertions(+), 116 deletions(-)

which is probably a good thing if it is ever merged into mainline :-)

See patch description for more info.

Vegard