From: Borislav Petkov Date: Wed, 15 Aug 2012 11:00:51 +0000 (+0200) Subject: scripts/decodecode: Fixup trapping instruction marker X-Git-Tag: v3.6~209 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2a95e37c128d1c12b3cb0eb6dfdc1739a7104cd8;p=platform%2Fkernel%2Flinux-amlogic.git scripts/decodecode: Fixup trapping instruction marker When dumping "Code: " sections from an oops, the trapping instruction %rip points to can be a string copy 2b:* f3 a5 rep movsl %ds:(%rsi),%es:(%rdi) and the line contain a bunch of ":". Current "cut" selects only the and the second field output looks funnily overlaid this: 2b:* f3 a5 rep movsl %ds <-- trapping instruction:(%rsi),%es:(%rdi Fix this by selecting the remaining fields too. Cc: Andrew Morton Cc: Linus Torvalds Cc: linux-kbuild@vger.kernel.org Signed-off-by: Borislav Petkov Signed-off-by: Linus Torvalds --- diff --git a/scripts/decodecode b/scripts/decodecode index 18ba881..4f8248d 100755 --- a/scripts/decodecode +++ b/scripts/decodecode @@ -89,7 +89,7 @@ echo $code >> $T.s disas $T cat $T.dis >> $T.aa -faultline=`cat $T.dis | head -1 | cut -d":" -f2` +faultline=`cat $T.dis | head -1 | cut -d":" -f2-` faultline=`echo "$faultline" | sed -e 's/\[/\\\[/g; s/\]/\\\]/g'` cat $T.oo | sed -e "s/\($faultline\)/\*\1 <-- trapping instruction/g"