[PATCH v2] scripts: add ARM support to decodecode

Simon Horman horms at verge.net.au
Tue Jan 5 17:14:37 EST 2010


On Tue, Jan 05, 2010 at 08:27:58PM +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 <like so>
>    in x86.
> 
>  - ARM mnemonics may include characters such as [] which need to be
>    escaped before being passed to sed for the "<- trapping instruction"
>    substitution.
> 
> Signed-off-by: Rabin Vincent <rabin at rab.in>
> ---
> v2: condensed some sed and grep expressions

Condensation portion Acked-by: Simon Horman <horms at verge.net.au>




More information about the linux-arm-kernel mailing list