<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/scripts/decodecode, branch v3.2</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/scripts/decodecode?h=v3.2</id>
<link rel='self' href='https://git.amat.us/linux/atom/scripts/decodecode?h=v3.2'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2010-06-04T08:26:35Z</updated>
<entry>
<title>scripts: decodecode: remove bashisms</title>
<updated>2010-06-04T08:26:35Z</updated>
<author>
<name>Rabin Vincent</name>
<email>rabin@rab.in</email>
</author>
<published>2010-06-03T17:18:12Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=b396aa03084b51f6822052a8070703287f198360'/>
<id>urn:sha1:b396aa03084b51f6822052a8070703287f198360</id>
<content type='text'>
Remove bashisms to make scripts/decodecode work with other shells.

Signed-off-by: Rabin Vincent &lt;rabin@rab.in&gt;
Reviewed-by: WANG Cong &lt;xiyou.wangcong@gmail.com&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
</entry>
<entry>
<title>scripts: add ARM support to decodecode</title>
<updated>2010-02-02T13:33:54Z</updated>
<author>
<name>Rabin Vincent</name>
<email>rabin@rab.in</email>
</author>
<published>2010-01-05T14:57:58Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=5358db0b0e16470337c6ec08177deb3f68ed7673'/>
<id>urn:sha1:5358db0b0e16470337c6ec08177deb3f68ed7673</id>
<content type='text'>
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 &lt;like so&gt;
   in x86.

 - ARM mnemonics may include characters such as [] which need to be
   escaped before being passed to sed for the "&lt;- trapping instruction"
   substitution.

Signed-off-by: Rabin Vincent &lt;rabin@rab.in&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
</entry>
<entry>
<title>scripts: improve the decodecode script</title>
<updated>2008-12-03T21:36:39Z</updated>
<author>
<name>Arjan van de Ven</name>
<email>arjan@linux.intel.com</email>
</author>
<published>2008-12-01T22:21:06Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=846442c8ddc02e378e7b981f0928449ed1ff1e1f'/>
<id>urn:sha1:846442c8ddc02e378e7b981f0928449ed1ff1e1f</id>
<content type='text'>
kerneloops.org has been using an improved "decodecode" script,
specifically it has a special marker that shows which line in the assembly
the oops happened at, like this:

  20:	83 e0 03             	and    $0x3,%eax
  23:	09 d8                	or     %ebx,%eax
  25:	85 db                	test   %ebx,%ebx
  27:	89 02                	mov    %eax,(%edx)
  29:	74 0f                	je     0x3a
  2b:*	3b 73 04             	cmp    0x4(%ebx),%esi     &lt;-- trapping instruction
  2e:	75 05                	jne    0x35
  30:	89 53 04             	mov    %edx,0x4(%ebx)
  33:	eb 07                	jmp    0x3c
  35:	89 53 08             	mov    %edx,0x8(%ebx)

this patch updates the kernel copy to also have this functionality.

Signed-off-by: Arjan van de Ven &lt;arjan@linux.intel.com&gt;
Reviewed-by: WANG Cong &lt;wangcong@zeuux.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
</content>
</entry>
<entry>
<title>Mark 'scripts/decodecode' executable</title>
<updated>2008-05-30T21:02:21Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2008-05-30T21:02:21Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=14d03fd98e076c6e60e1085a962410dc4d70ab59'/>
<id>urn:sha1:14d03fd98e076c6e60e1085a962410dc4d70ab59</id>
<content type='text'>
.. because it is.

Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>kbuild: minor scripts/decodecode update</title>
<updated>2008-01-28T22:14:40Z</updated>
<author>
<name>Randy Dunlap</name>
<email>randy.dunlap@oracle.com</email>
</author>
<published>2008-01-14T23:18:31Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=fa220d89ad050cf5d970c0418ded019a80efedfb'/>
<id>urn:sha1:fa220d89ad050cf5d970c0418ded019a80efedfb</id>
<content type='text'>
Remove the tmp file when exiting.  Noticed by Arjan van de Ven.
Catch mktemp failure and exit with message.
Trap kill or other signals and exit cleanly.

Signed-off-by: Randy Dunlap &lt;randy.dunlap@oracle.com&gt;
Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
</content>
</entry>
<entry>
<title>doc/oops-tracing: add Code: decode info</title>
<updated>2007-07-16T16:05:48Z</updated>
<author>
<name>Randy Dunlap</name>
<email>randy.dunlap@oracle.com</email>
</author>
<published>2007-07-16T06:41:15Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=dcecc6c70013e3a5fa81b3081480c03e10670a23'/>
<id>urn:sha1:dcecc6c70013e3a5fa81b3081480c03e10670a23</id>
<content type='text'>
Add info that the Code: bytes line contains &lt;xy&gt; or (wxyz) in some
architecture oops reports and what that means.

Add a script by Andi Kleen that reads the Code: line from an Oops report
file and generates assembly code from the hex bytes.

Signed-off-by: Randy Dunlap &lt;randy.dunlap@oracle.com&gt;
Cc: Andi Kleen &lt;ak@suse.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
</feed>
