From c35e897dab0541ff17120a242c4434b646993de9 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Sat, 6 Aug 2011 14:52:08 +0200 Subject: Add some simple analysis of dmesg output. Adds to dmesg attachments "check" link filtering on /[fF]ail|[eE]rror|drm/ Fix #111 --- data/rhlib/rhbzpage.js | 42 +++++++++++++++++++++++++----------------- 1 file changed, 25 insertions(+), 17 deletions(-) (limited to 'data/rhlib') 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) { -- cgit