From mboxrd@z Thu Jan 1 00:00:00 1970 From: arjan@linux.intel.com (Arjan van de Ven) Date: Tue, 5 Jan 2010 07:06:58 -0800 Subject: [PATCH v2] scripts: add ARM support to decodecode In-Reply-To: <20100105145758.GA2690@debian> References: <1262184839-24497-1-git-send-email-rabin@rab.in> <20091231051858.GA31256@verge.net.au> <20100105145758.GA2690@debian> Message-ID: <20100105070658.766317d2@linux.intel.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Tue, 5 Jan 2010 20:27:58 +0530 Rabin Vincent wrote: > This patch adds support for decoding ARM oopses to scripts/decodecode. > The following things are handled: > > - ARCH and CROSS_COMPILE environment variables are respected. > > - The Code: in x86 oopses is in bytes, while it is in either words (4 > bytes) or halfwords for ARM. > > - Some versions of ARM objdump refuse to disassemble instructions > generated by literal constants (".word 0x..."). The workaround is > to strip the object file first. > > - The faulting instruction is marked (liked so) in ARM, but > in x86. > > - ARM mnemonics may include characters such as [] which need to be > escaped before being passed to sed for the "<- trapping > instruction" substitution. I'm fine with this, but I wonder if ARM could switch to the <> convention for the faulting instruction, just to keep things consistent.. -- Arjan van de Ven Intel Open Source Technology Centre For development, discussion and tips for power savings, visit http://www.lesswatts.org