basical 发表于 2016-02-17 16:59

[请教]怎样在kernel crash后找到trace信息?

本帖最后由 basical 于 2016-02-17 17:33 编辑

使用写sys文件节点的方式获取trace event,有没有人知道如果kernel crash后怎样可以找回trace消息?

basical 发表于 2016-02-19 11:39

自问自答:参考Debugging the kernel using Ftrace

Having Ftrace configured and enabling ftrace_dump_on_oops in the kernel boot parameters, or by echoing a "1" into /proc/sys/kernel/ftrace_dump_on_oops, will enable Ftrace to dump to the console the entire trace buffer in ASCII format on oops or panic.
页: [1]
查看完整版本: [请教]怎样在kernel crash后找到trace信息?