Getting Linux kernel debug information after a kernel crash

前端 未结 6 1747
半阙折子戏
半阙折子戏 2021-01-05 17:02

Is there a way to get kernel previous debug information after kernel crash occurs.

I am trying to develop a kernel module which basically captures IP packets in the

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-05 17:19

    Actually, the /var/log/dmesg file contains the current boot print message log. The /var/log/kern.log file contains your previous boot kernel print message log in Ubuntu. In other Linux flavours it will contain in the /var/log/messages file in Fedora, etc..

提交回复
热议问题