crash_experiment
1. 编译linux kernel
## based on linux 5.4 version
$ git am 0001-test-simulate-a-deadlock-case.patch$ make x86_64_defconfig
$ make menuconfig
Kernel hacking --->
Compile-time checks and compiler options --->
[*] Compile the kernel with debug info ## CONFIG_DEBUG_INFO
Debug Lockups and Hangs --->
[*] Detect Soft Lockups ## CONFIG_SOFTLOCKUP_DETECTOR
[*] Panic (Reboot) On Soft Lockups ## CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC
$ make2. 通过qemu捕捉vmcore
$ qemu-system-x86_64 -qmp tcp:localhost:4444,server,nowait ...4. 通过crash分析vmcore
5. 动态调试本机linux系统
Last updated