Kprobes: indicate kretprobe support in Kconfig
Add CONFIG_HAVE_KRETPROBES to the arch/<arch>/Kconfig file for relevant architectures with kprobes support. This facilitates easy handling of in-kernel modules (like samples/kprobes/kretprobe_example.c) that depend on kretprobes being present in the kernel. Thanks to Sam Ravnborg for helping make the patch more lean. Per Mathieu's suggestion, added CONFIG_KRETPROBES and fixed up dependencies. Signed-off-by:Ananth N Mavinakayanahalli <ananth@in.ibm.com> Acked-by:
Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> Acked-by:
Ingo Molnar <mingo@elte.hu> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- arch/Kconfig 7 additions, 0 deletionsarch/Kconfig
- arch/arm/Kconfig 1 addition, 0 deletionsarch/arm/Kconfig
- arch/ia64/Kconfig 1 addition, 0 deletionsarch/ia64/Kconfig
- arch/powerpc/Kconfig 1 addition, 0 deletionsarch/powerpc/Kconfig
- arch/s390/Kconfig 1 addition, 0 deletionsarch/s390/Kconfig
- arch/sparc64/Kconfig 1 addition, 0 deletionsarch/sparc64/Kconfig
- arch/x86/Kconfig 1 addition, 0 deletionsarch/x86/Kconfig
- include/asm-arm/kprobes.h 0 additions, 1 deletioninclude/asm-arm/kprobes.h
- include/asm-ia64/kprobes.h 0 additions, 1 deletioninclude/asm-ia64/kprobes.h
- include/asm-powerpc/kprobes.h 0 additions, 1 deletioninclude/asm-powerpc/kprobes.h
- include/asm-s390/kprobes.h 0 additions, 1 deletioninclude/asm-s390/kprobes.h
- include/asm-sparc64/kprobes.h 0 additions, 2 deletionsinclude/asm-sparc64/kprobes.h
- include/asm-x86/kprobes.h 0 additions, 1 deletioninclude/asm-x86/kprobes.h
- include/linux/kprobes.h 3 additions, 3 deletionsinclude/linux/kprobes.h
- kernel/kprobes.c 3 additions, 6 deletionskernel/kprobes.c
Loading
Please register or sign in to comment