core.c: add check to be sure that the kernel run with CONFIG_KALLSYMS_ALL option

This commit is contained in:
Gaetan Trellu 2014-06-30 18:13:44 -04:00
parent 26815a1ad9
commit 4a00442e1d

View File

@ -49,8 +49,9 @@
#if !defined(CONFIG_FUNCTION_TRACER) || \
!defined(CONFIG_HAVE_FENTRY) || \
!defined(CONFIG_MODULES) || \
!defined(CONFIG_SYSFS)
#error "CONFIG_FUNCTION_TRACER, CONFIG_HAVE_FENTRY, CONFIG_MODULES, and CONFIG_SYSFS kernel config options are required"
!defined(CONFIG_SYSFS) || \
!defined(CONFIG_KALLSYMS_ALL)
#error "CONFIG_FUNCTION_TRACER, CONFIG_HAVE_FENTRY, CONFIG_MODULES, CONFIG_SYSFS, CONFIG_KALLSYMS_ALL kernel config options are required"
#endif
#define KPATCH_HASH_BITS 8