内核崩溃后获得linux内核调试信息 [英] Getting linux kernel debug information after kernel crash

查看:847
本文介绍了内核崩溃后获得linux内核调试信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么办法内核chrash发生后能得到内核previous调试信息。

Is there any way to get kernel previous debug information after kernel chrash occurs.

我试图建立一个内核模块内核网络堆栈和放大器内部IP层基本上捕获IP数据包;一些修改后,我有相同的数据包发送回NIC进行传输。在所有这些过程我米,的的printk()帮助写调试信息。但是,如果任何事情不顺心和放大器;发生故障的内核,所以我们必须重新启动系统。那么,有没有办法让我的previous调试信息,因为重新启动调试信息后未present我试图通过的dmesg 命令来得到它。

I am trying to develop a Kernel module which basically captures IP packets in ip layer inside kernel network stack & after some modification i have to send the same packet back to the NIC for transmission. During all these processes i m writing debug information with the help of printk(). but if any thing goes wrong & kernel failure occurs so we have to restart the system . So is there any way to get my previous debug info because after rebooting the debug info is not present as i try to get it by dmesg command.

推荐答案

其实在/ var /日志/ dmesg的文件包含当前引导打印消息日志。该/var/log/kern.log文件包含previous启动内核打印消息Ubuntu的日志。在其他Linux发行版将包含在/ var / log / messages中Fedora的文件等。

Actually /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..

这篇关于内核崩溃后获得linux内核调试信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆