Files
acrn-hypervisor/tools/acrn-crashlog/data/acrnprobe.xml
Liu, Xinwu b30ba3db15 tools:acrn-crashlog: Detect and classify the crash in ACRN and kernel
Since ACRN has the capability to reboot and reboot reason is available
in SOS, acrnprobe could detect the crash of acrn and SOS kernel.

List of added crash types:

1. ACRNCRASH            - crashed in hypervisor, this detection depends on
                          files in /tmp/acrnlog_last(provided by acrnlog).
2. IPANIC               - crashed in SOS kernel, this detection depends on
                          pstore.
3. SWWDT_IPANIC         - crashed in SOS kernel and reboot reason is wdt.
4. HWWDT_UNHANDLE       - only recognize reboot reason is global, there is no
                          further clues that it's a SOS kernel crash or a
                          hypervisor crash.
5. SWWDT_UNHANDLE       - only recognize reboot reason is wdt, there is no
                          further clues that it's a SOS kernel crash or a
                          hypervisor crash.
6. UNKNOWN              - only recognize reboot reason is warm, there is no
                          further clues that it's a SOS kernel crash or a
                          hypervisor crash.

Signed-off-by: Liu, Xinwu <xinwu.liu@intel.com>
Acked-by: Chen Gang <gang.c.chen@intel.com>
2018-07-12 17:29:51 +08:00

177 lines
4.7 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<conf>
<senders>
<sender id="1" enable="true">
<name>crashlog</name>
<outdir>/var/log/crashlog</outdir>
<maxcrashdirs>1000</maxcrashdirs>
<maxlines>5000</maxlines>
<spacequota>90</spacequota>
<uptime>
<name>UPTIME</name>
<frequency>5</frequency>
<eventhours>6</eventhours>
</uptime>
</sender>
<sender id="2" enable="true">
<name>telemd</name>
<outdir>/var/log/acrnprobe</outdir>
<uptime>
<name>UPTIME</name>
<frequency>5</frequency>
<eventhours>6</eventhours>
</uptime>
</sender>
</senders>
<triggers>
<trigger id="1" enable="true">
<name>t_pstore</name>
<type>node</type>
<path>/sys/fs/pstore/console-ramoops-0</path>
</trigger>
<trigger id="2" enable="true">
<name>t_boot</name>
<type>file</type>
<path>/proc/cmdline</path>
</trigger>
<trigger id="3" enable="true">
<name>t_usercrash</name>
<type>dir</type>
<path>/var/log/usercrashes</path>
</trigger>
<trigger id="4" enable="true">
<name>t_rebootreason</name>
<type>rebootreason</type>
</trigger>
<trigger id="5" enable="true">
<name>t_acrnlog_last</name>
<type>file</type>
<path>/tmp/acrnlog/acrnlog_last.[*]</path>
</trigger>
</triggers>
<vms enable="true">
<vm id="1" enable="true">
<name>VM1</name>
<channel>polling</channel>
<interval>60</interval>
<syncevent id="1">CRASH/TOMBSTONE</syncevent>
<syncevent id="2">CRASH/UIWDT</syncevent>
<syncevent id="3">CRASH/IPANIC</syncevent>
<syncevent id="4">REBOOT</syncevent>
</vm>
</vms>
<logs>
<log id="1" enable="true">
<name>pstore</name>
<type>node</type>
<path>/sys/fs/pstore/console-ramoops-0</path>
</log>
<log id='2' enable='true'>
<name>kmsg</name>
<type>cmd</type>
<path>dmesg</path>
</log>
<log id='3' enable='true'>
<name>cmdline</name>
<type>node</type>
<path>/proc/cmdline</path>
</log>
<log id='4' enable='true'>
<name>syslog</name>
<type>cmd</type>
<path>journalctl -b -0 -n 300 --no-pager</path>
</log>
<log id='5' enable='true'>
<name>acrnlog_cur</name>
<type>file</type>
<path>/tmp/acrnlog/acrnlog_cur.[-1]</path>
<lines>500</lines>
</log>
<log id='6' enable='true'>
<name>acrnlog_last</name>
<type>file</type>
<path>/tmp/acrnlog/acrnlog_last.[*]</path>
</log>
</logs>
<crashes>
<crash id='1' inherit='0' enable='true'>
<name>UNKNOWN</name>
<trigger>t_rebootreason</trigger>
<channel>oneshot</channel>
<content id='1'>WARM</content>
<log id='1'>pstore</log>
<log id='2'>acrnlog_last</log>
</crash>
<crash id='2' inherit='0' enable='true'>
<name>SWWDT_UNHANDLE</name>
<trigger>t_rebootreason</trigger>
<channel>oneshot</channel>
<content id='1'>WATCHDOG</content>
<log id='1'>pstore</log>
<log id='2'>acrnlog_last</log>
</crash>
<crash id='3' inherit='0' enable='true'>
<name>HWWDT_UNHANDLE</name>
<trigger>t_rebootreason</trigger>
<channel>oneshot</channel>
<content id='1'>GLOBAL</content>
<log id='1'>pstore</log>
<log id='2'>acrnlog_last</log>
</crash>
<crash id='4' inherit='1' enable='true'>
<name>ACRNCRASH</name>
<trigger>t_acrnlog_last</trigger>
<content id='1'>= Unhandled exception:</content>
</crash>
<crash id='5' inherit='1' enable='true'>
<name>IPANIC</name>
<trigger>t_pstore</trigger>
<content id='1'> </content>
<mightcontent expression='1' id='1'>Kernel panic - not syncing:</mightcontent>
<mightcontent expression='1' id='2'>BUG: unable to handle kernel</mightcontent>
<data id='1'>kernel BUG at</data>
<data id='2'>EIP is at</data>
<data id='3'>Comm:</data>
</crash>
<crash id='6' inherit='2' enable='true'>
<name>ACRNCRASH</name>
<trigger>t_acrnlog_last</trigger>
<content id='1'>= Unhandled exception:</content>
</crash>
<crash id='7' inherit='2' enable='true'>
<name>SWWDT_IPANIC</name>
<trigger>t_pstore</trigger>
<content id='1'> </content>
<mightcontent expression='1' id='1'>Kernel panic - not syncing:</mightcontent>
<mightcontent expression='1' id='2'>BUG: unable to handle kernel</mightcontent>
<data id='1'>kernel BUG at</data>
<data id='2'>EIP is at</data>
<data id='3'>Comm:</data>
</crash>
<crash id='8' inherit='0' enable='true'>
<name>USERCRASH</name>
<trigger>t_usercrash</trigger>
<channel>inotify</channel>
<log id='1'>kmsg</log>
<log id='2'>syslog</log>
</crash>
</crashes>
<infos>
<info id='1' enable='true'>
<name>BOOT_LOGS</name>
<trigger>t_boot</trigger>
<channel>oneshot</channel>
<log id='1'>kmsg</log>
<log id='2'>cmdline</log>
<log id='3'>acrnlog_cur</log>
<log id='4'>acrnlog_last</log>
</info>
</infos>
</conf>