Remove MODULES dependency and migrate from module_alloc to the new text_alloc() API Right now one has to compile LKM support only to enable kprobes. With this change applied, it is somewhat easier to create custom test kernel's with a proper debugging capabilities, thus making Linux more developer friendly. Jarkko Sakkinen (3): kprobes: Add text_alloc() and text_free() module: Add lock_modules() and unlock_modules() kprobes: Flag out CONFIG_MODULES dependent code arch/Kconfig | 2 +- arch/x86/Kconfig | 3 ++ arch/x86/kernel/Makefile | 1 + arch/x86/kernel/module.c | 49 ------------------------- arch/x86/kernel/text.c | 71 +++++++++++++++++++++++++++++++++++++ include/linux/module.h | 29 +++++++++++---- include/linux/text.h | 17 +++++++++ kernel/kprobes.c | 22 ++++++++++-- kernel/livepatch/core.c | 8 ++--- kernel/module.c | 70 ++++++++++++++++++++---------------- kernel/trace/trace_kprobe.c | 20 +++++++++-- 11 files changed, 196 insertions(+), 96 deletions(-) create mode 100644 arch/x86/kernel/text.c create mode 100644 include/linux/text.h -- 2.25.1