Linux Device Driver

如何開啟dynamic debug


參考資訊:
1. gLhg

CONFIG_DEBUG_FS


CONFIG_DYNAMIC_DEBUG


使用方式:

# mount -t debugfs none /mnt

# echo "file sharpsl_pm.c +p" > /mnt/dynamic_debug/control
# echo 8 > /proc/sys/kernel/printk

# echo "file sharpsl_pm.c -p" > /mnt/dynamic_debug/control
# echo 4 > /proc/sys/kernel/printk


返回上一頁