]> git.baikalelectronics.ru Git - kernel.git/commit
scripts/decodecode: Fixup trapping instruction marker
authorBorislav Petkov <borislav.petkov@amd.com>
Wed, 15 Aug 2012 11:00:51 +0000 (13:00 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Aug 2012 18:15:09 +0000 (11:15 -0700)
commite513f386c2ea4c3e25011e9e1f74d9956a59de2f
treeef7c12b15069ae6840a797aa66c0337cfb246921
parent702b437f26eee386245c5c88a59d13f88ad7be86
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 <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-kbuild@vger.kernel.org
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/decodecode