diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-08-06 14:52:08 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-08-06 14:52:08 +0200 |
commit | c35e897dab0541ff17120a242c4434b646993de9 (patch) | |
tree | aa5bc8051735e5790f9fd36aed143e424a0bf760 /data/rhlib | |
parent | c35f4d838c04c9bbbd6126004684a85c98d9d8df (diff) | |
download | bugzilla-triage-c35e897dab0541ff17120a242c4434b646993de9.tar.gz |
Add some simple analysis of dmesg output.
Adds to dmesg attachments "check" link filtering on
/[fF]ail|[eE]rror|drm/
Fix #111
Diffstat (limited to 'data/rhlib')
-rw-r--r-- | data/rhlib/rhbzpage.js | 42 |
1 files changed, 25 insertions, 17 deletions
diff --git a/data/rhlib/rhbzpage.js b/data/rhlib/rhbzpage.js index cbd8665..34bf906 100644 --- a/data/rhlib/rhbzpage.js +++ b/data/rhlib/rhbzpage.js @@ -26,24 +26,31 @@ var logAnalyzeLogic = { * 0x00001000/128, BIOS @ 0x????????/131072 */ re: [ - "^(\\[[ .0-9]+\\])?\\s*\\(--\\) PCI:\\*\\([0-9:]+\\)\\s*" + - "([0-9a-f:]+).*$", - "^\\s*\\[?[ 0-9.]*\\]?\\s*\\(--\\) "+ - "([A-Za-z]+)\\([0-9]?\\): Chipset: (.*)$", - ], - func: chipsetMagic + "^(\\[[ .0-9]+\\])?\\s*\\(--\\) PCI:\\*\\([0-9:]+\\)\\s*" + + "([0-9a-f:]+).*$", + "^\\s*\\[?[ 0-9.]*\\]?\\s*\\(--\\) "+ + "([A-Za-z]+)\\([0-9]?\\): Chipset: (.*)$", + ], + func: chipsetMagic }, - /* - * [ 126.385] (WW) Falling back to old probe method for vesa [ 126.385] (WW) - * Falling back to old probe method for fbdev [ 126.386] (--) NOUVEAU(0): - * Chipset: "NVIDIA NVaf" Backtrace: [ 33.158] Kernel command line: ro - * root=LABEL=root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 - * SYSFONT=latarcyrheb-sun16 KEYTABLE=us drm.debug=0x04 - * - */ "AnalyzeXorgLogBacktrace": { - re: "^\\s*(\\[[0-9 .]*\\])?\\s*(\\((EE|WW)\\)|.* [cC]hipset:.*)|\\s*(Backtrace|Kernel command line)", - func: analyzeXorg + /* + * [ 126.385] (WW) Falling back to old probe method for vesa [ 126.385] (WW) + * Falling back to old probe method for fbdev [ 126.386] (--) NOUVEAU(0): + * Chipset: "NVIDIA NVaf" Backtrace: [ 33.158] Kernel command line: ro + * root=LABEL=root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 + * SYSFONT=latarcyrheb-sun16 KEYTABLE=us drm.debug=0x04 + * + */ + re: "^\\s*(\\[[0-9 .]*\\])?\\s*(\\((EE|WW)\\)|" + + ".* [cC]hipset:.*)|\\s*(Backtrace|Kernel command line)", + func: displayResultsInPanel + }, + "AnalyzeDmesgErrors": { + /* + */ + re: "[fF]ail|[eE]rror|drm", + func: displayResultsInPanel } }; @@ -72,6 +79,7 @@ function RHOnMessageHandler(msg, nextHandlerList) { break; case "AnalyzeInterestingLine": case "AnalyzeXorgLogBacktrace": + case "AnalyzeDmesgErrors": findInterestingLine(msg.data, msg.cmd); break; case "queryUpstream": @@ -272,7 +280,7 @@ function chipsetMagic (interestingLineArr) { } } -function analyzeXorg(results) { +function displayResultsInPanel(results) { var innerString = ""; if (results.length > 0) { |