<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux.git/arch/openrisc/kernel/stacktrace.c, branch v4.19</title>
<subtitle>Linux kernel source tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/'/>
<entry>
<title>openrisc: support framepointers and STACKTRACE_SUPPORT</title>
<updated>2017-11-03T05:01:15+00:00</updated>
<author>
<name>Stafford Horne</name>
<email>shorne@gmail.com</email>
</author>
<published>2017-07-24T12:44:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=eecac38b0423a69715073ecbde581dafd1abb28b'/>
<id>eecac38b0423a69715073ecbde581dafd1abb28b</id>
<content type='text'>
For lockdep support a reliable stack trace mechanism is needed.  This
patch adds support in OpenRISC for the stacktrace framework, implemented
by a simple unwinder api.  The unwinder api supports both framepointer
and basic stack tracing.

The unwinder is now used to replace the stack_dump() implementation as
well. The new traces are inline with other architectures trace format:

 Call trace:
 [&lt;c0004448&gt;] show_stack+0x3c/0x58
 [&lt;c031c940&gt;] dump_stack+0xa8/0xe4
 [&lt;c0008104&gt;] __cpu_up+0x64/0x130
 [&lt;c000d268&gt;] bringup_cpu+0x3c/0x178
 [&lt;c000d038&gt;] cpuhp_invoke_callback+0xa8/0x1fc
 [&lt;c000d680&gt;] cpuhp_up_callbacks+0x44/0x14c
 [&lt;c000e400&gt;] cpu_up+0x14c/0x1bc
 [&lt;c041da60&gt;] smp_init+0x104/0x15c
 [&lt;c033843c&gt;] ? kernel_init+0x0/0x140
 [&lt;c0415e04&gt;] kernel_init_freeable+0xbc/0x25c
 [&lt;c033843c&gt;] ? kernel_init+0x0/0x140
 [&lt;c0338458&gt;] kernel_init+0x1c/0x140
 [&lt;c003a174&gt;] ? schedule_tail+0x18/0xa0
 [&lt;c0006b80&gt;] ret_from_fork+0x1c/0x9c

Signed-off-by: Stafford Horne &lt;shorne@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For lockdep support a reliable stack trace mechanism is needed.  This
patch adds support in OpenRISC for the stacktrace framework, implemented
by a simple unwinder api.  The unwinder api supports both framepointer
and basic stack tracing.

The unwinder is now used to replace the stack_dump() implementation as
well. The new traces are inline with other architectures trace format:

 Call trace:
 [&lt;c0004448&gt;] show_stack+0x3c/0x58
 [&lt;c031c940&gt;] dump_stack+0xa8/0xe4
 [&lt;c0008104&gt;] __cpu_up+0x64/0x130
 [&lt;c000d268&gt;] bringup_cpu+0x3c/0x178
 [&lt;c000d038&gt;] cpuhp_invoke_callback+0xa8/0x1fc
 [&lt;c000d680&gt;] cpuhp_up_callbacks+0x44/0x14c
 [&lt;c000e400&gt;] cpu_up+0x14c/0x1bc
 [&lt;c041da60&gt;] smp_init+0x104/0x15c
 [&lt;c033843c&gt;] ? kernel_init+0x0/0x140
 [&lt;c0415e04&gt;] kernel_init_freeable+0xbc/0x25c
 [&lt;c033843c&gt;] ? kernel_init+0x0/0x140
 [&lt;c0338458&gt;] kernel_init+0x1c/0x140
 [&lt;c003a174&gt;] ? schedule_tail+0x18/0xa0
 [&lt;c0006b80&gt;] ret_from_fork+0x1c/0x9c

Signed-off-by: Stafford Horne &lt;shorne@gmail.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
