mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-08 10:04:42 +00:00
tools: acrn-crashlog: Limit the log size of kmsg
Dmesg collects too much log when kernel meets log storm. This patch reads kernel log from "/dev/kmsg" intead of dmesg and limits the generated log size. Tracked-On: #1024 Signed-off-by: Liu, Xinwu <xinwu.liu@intel.com> Reviewed-by: Zhi Jin <zhi.jin@intel.com> Acked-by: Chen, Gang <gang.c.chen@intel.com>
This commit is contained in:
@@ -72,8 +72,9 @@
|
||||
</log>
|
||||
<log id='2' enable='true'>
|
||||
<name>kmsg</name>
|
||||
<type>cmd</type>
|
||||
<path>dmesg</path>
|
||||
<type>node</type>
|
||||
<path>/dev/kmsg</path>
|
||||
<sizelimit>2</sizelimit>
|
||||
</log>
|
||||
<log id='3' enable='true'>
|
||||
<name>cmdline</name>
|
||||
|
||||
Reference in New Issue
Block a user