]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
Allow DEBUG_RODATA and KPROBES to co-exist
authorArjan van de Ven <arjan@infradead.org>
Thu, 21 Jun 2007 05:23:21 +0000 (22:23 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 21 Jun 2007 23:02:50 +0000 (16:02 -0700)
commit0864a4e201b1ea442f4c8b887418a29f67e24d30
treecee5372bb22502e52029543dfb72c571a1e89faa
parent79d9a72f87d0a6f910be262a9dd4c36e96972a92
Allow DEBUG_RODATA and KPROBES to co-exist

Do not mark the kernel text read only if KPROBES is in the kernel;
kprobes needs to hot-patch the kernel text to insert it's
instrumentation.

In this case, only mark the .rodata segment as read only.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Tested-by: S. P. Prasanna <prasanna@in.ibm.com>
Cc: Andi Kleen <ak@suse.de>
Cc: William Cohen <wcohen@redhat.com>
Cc: Ian McDonald <ian.mcdonald@jandi.co.nz>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/i386/Kconfig.debug
arch/i386/mm/init.c
arch/x86_64/Kconfig.debug
arch/x86_64/mm/init.c