mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 19:51:35 +01:00
some more docs, retore full Linux configs, wont touch that now
This commit is contained in:
@@ -1,28 +1,16 @@
|
||||
# Misc.
|
||||
CONFIG_BLK_DEV_INITRD=y
|
||||
CONFIG_STRICT_DEVMEM=n
|
||||
CONFIG_DEBUG_FS=y
|
||||
CONFIG_DYNAMIC_DEBUG=y
|
||||
CONFIG_MODULE_SRCVERSION_ALL=y
|
||||
CONFIG_OVERLAY_FS=y
|
||||
CONFIG_STRICT_DEVMEM=n
|
||||
|
||||
# GDB debugging.
|
||||
CONFIG_DEBUG_FS=y
|
||||
CONFIG_DEBUG_INFO=y
|
||||
CONFIG_DEBUG_KERNEL=y
|
||||
CONFIG_GDB_SCRIPTS=y
|
||||
|
||||
# Non-static variables show up on /proc/kallsyms
|
||||
# https://stackoverflow.com/questions/20196636/does-kallsyms-have-all-the-symbol-of-kernel-functions/44614878#44614878
|
||||
CONFIG_KALLSYMS_ALL=y
|
||||
|
||||
# /proc/config.gz
|
||||
CONFIG_IKCONFIG=y
|
||||
CONFIG_IKCONFIG_PROC=y
|
||||
|
||||
# TODO make example.
|
||||
# This seems to allow userspace to create arbitrary configuration trees,
|
||||
# which kernel modules can then read and interpret.
|
||||
CONFIG_CONFIGFS_FS=y
|
||||
|
||||
# KGDB
|
||||
CONFIG_CONSOLE_POLL=y
|
||||
CONFIG_KDB_CONTINUE_CATASTROPHIC=0
|
||||
@@ -38,6 +26,19 @@ CONFIG_MAGIC_SYSRQ=y
|
||||
CONFIG_MAGIC_SYSRQ_DEFAULT_ENABLE=0x1
|
||||
CONFIG_SERIAL_KGDB_NMI=n
|
||||
|
||||
# Non-static variables show up on /proc/kallsyms
|
||||
# https://stackoverflow.com/questions/20196636/does-kallsyms-have-all-the-symbol-of-kernel-functions/44614878#44614878
|
||||
CONFIG_KALLSYMS_ALL=y
|
||||
|
||||
# /proc/config.gz
|
||||
CONFIG_IKCONFIG=y
|
||||
CONFIG_IKCONFIG_PROC=y
|
||||
|
||||
# TODO make example.
|
||||
# This seems to allow userspace to create arbitrary configuration trees,
|
||||
# which kernel modules can then read and interpret.
|
||||
CONFIG_CONFIGFS_FS=y
|
||||
|
||||
# Module.symvers in kernel tree and modules tree contains CRC of signatures.
|
||||
# TODO: I think the CRC are stored in the built kernel and module, and checked
|
||||
# at insmod, but bgrep did not find it in kernel image.
|
||||
|
||||
Reference in New Issue
Block a user