另一种方式实时记录更大的dmesg的信息 1.将pr_err或者pr_debug函数替换成trace_printk函数 2.将dmesg查看替换成cat /sys/kernel/debug/tracing/trace进行查看