浏览代码

kernel: add KERNEL_DEBUG_VIRTUAL

This option allows turning on CONFIG_DEBUG_VIRTUAL which is useful to
debug incorrect uses of the virtual to physical and physical to virtual
translations functions.

Signed-off-by: Florian Fainelli <[email protected]>
Florian Fainelli 3 年之前
父节点
当前提交
e7ec2d7399
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      config/Config-kernel.in

+ 8 - 0
config/Config-kernel.in

@@ -414,6 +414,14 @@ config KERNEL_DEBUG_LL
 	help
 	  ARM low level debugging.
 
+config KERNEL_DEBUG_VIRTUAL
+	bool "Compile the kernel with VM translations debugging"
+	select KERNEL_DEBUG_KERNEL
+	default n
+	help
+	  Enable checks sanity checks to catch invalid uses of
+	  virt_to_phys()/phys_to_virt() against the non-linear address space.
+
 config KERNEL_DYNAMIC_DEBUG
 	bool "Compile the kernel with dynamic printk"
 	select KERNEL_DEBUG_FS