<br><font size=2 face="sans-serif">Hi,</font>
<br>
<br><font size=2 face="sans-serif">I was able to check it in 2.6.36 version
of kernel, and it is defined in traps.c.</font>
<br><a href="http://lxr.linux.no/linux+v2.6.36/arch/mips/kernel/traps.c#L205"><font size=2 face="sans-serif">http://lxr.linux.no/linux+v2.6.36/arch/mips/kernel/traps.c#L205</font></a>
<br>
<br><font size=2 face="sans-serif">dump_stack() calls show_backtrace function
which had been show_trace in the earlier kernel versions.</font>
<br><font size=2 face="sans-serif">I compared between 2.6.14 and the latest
version, and here are the differences:</font>
<br><font size=2 face="sans-serif">-------------------------------------------------------------------------------</font>
<br><a href="http://lxr.linux.no/linux+v2.6.14/arch/mips/kernel/traps.c#L110"><font size=2 face="sans-serif">http://lxr.linux.no/linux+v2.6.14/arch/mips/kernel/traps.c#L110</font></a>
<br><font size=2 face="sans-serif">function: show_trace</font>
<br><font size=2 face="sans-serif"> while (!kstack_end(stack))
{</font>
<br><font size=2 face="sans-serif">
addr = *stack++;</font>
<br><font size=2 face="sans-serif">
if (__kernel_text_address(addr)) {</font>
<br><font size=2 face="sans-serif">
printk(" [<%0*lx>]
", field, addr);</font>
<br><font size=2 face="sans-serif">
print_symbol("%s\n",
addr);</font>
<br><font size=2 face="sans-serif">
}</font>
<br><font size=2 face="sans-serif"> }</font>
<br><font size=2 face="sans-serif">---------------------------------------------------------------------------------</font>
<br><font size=2 face="sans-serif">In the latest kernel, show_backtrace
function is used, which does the same thing, but through different functions</font>
<br><a href="http://lxr.linux.no/linux+v2.6.36/arch/mips/kernel/traps.c#L126"><font size=2 face="sans-serif">http://lxr.linux.no/linux+v2.6.36/arch/mips/kernel/traps.c#L126</font></a>
<br><font size=2 face="sans-serif">function: show_backtrace</font>
<br><font size=2 face="sans-serif"> printk("Call
Trace:\n");</font>
<br><font size=2 face="sans-serif"> do
{</font>
<br><font size=2 face="sans-serif">
<b>print_ip_sym</b>(pc);</font>
<br><font size=2 face="sans-serif">
pc = <b>unwind_stack</b>(task, &sp, pc, &ra);</font>
<br><font size=2 face="sans-serif"> }
while (pc);</font>
<br><tt><font size=3><br>
</font></tt>
<br><font size=2 face="sans-serif">Regards,</font>
<br><font size=2 face="sans-serif">Sowmya</font>
<br>
<br><tt><font size=2>kernelnewbies-bounces@kernelnewbies.org wrote on 01/02/2011
04:31:08 PM:<br>
<br>
> [image removed] </font></tt>
<br><tt><font size=2>> <br>
> Re: functions about dump backtrace function names in mips arch</font></tt>
<br><tt><font size=2>> <br>
> Mulyadi Santosa </font></tt>
<br><tt><font size=2>> <br>
> to:</font></tt>
<br><tt><font size=2>> <br>
> loody</font></tt>
<br><tt><font size=2>> <br>
> 01/02/2011 04:33 PM</font></tt>
<br><tt><font size=2>> <br>
> Sent by:</font></tt>
<br><tt><font size=2>> <br>
> kernelnewbies-bounces@kernelnewbies.org</font></tt>
<br><tt><font size=2>> <br>
> Cc:</font></tt>
<br><tt><font size=2>> <br>
> Kernel Newbies</font></tt>
<br><tt><font size=2>> <br>
> On Sun, Jan 2, 2011 at 15:26, loody <miloody@gmail.com> wrote:<br>
> > Dear all:<br>
> > If i remember correctly, when kernel panic there is a function
I can<br>
> > use to dump all the names of backtrace functions.<br>
> > I have searched arch/mips/traps.c, but I only can see the
dump<br>
> > functions of cpu registers,<br>
> <br>
> In x86, it's dump_stack(). The definition can be read here online:<br>
> </font></tt><a href="http://lxr.linux.no/#linux+v2.6.36/arch/x86/kernel/dumpstack.c"><tt><font size=2>http://lxr.linux.no/#linux+v2.6.36/arch/x86/kernel/dumpstack.c#L198</font></tt></a><tt><font size=2><br>
> <br>
> -- <br>
> regards,<br>
> <br>
> Mulyadi Santosa<br>
> Freelance Linux trainer and consultant<br>
> <br>
> blog: the-hydra.blogspot.com<br>
> training: mulyaditraining.blogspot.com<br>
> <br>
> _______________________________________________<br>
> Kernelnewbies mailing list<br>
> Kernelnewbies@kernelnewbies.org<br>
> </font></tt><a href=http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies><tt><font size=2>http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</font></tt></a><tt><font size=2><br>
</font></tt><pre style="white-space:normal">=====-----=====-----=====<br>Notice: The information contained in this e-mail<br>message and/or attachments to it may contain <br>confidential or privileged information. If you are <br>not the intended recipient, any dissemination, use, <br>review, distribution, printing or copying of the <br>information contained in this e-mail message <br>and/or attachments to it are strictly prohibited. If <br>you have received this communication in error, <br>please notify us by reply e-mail or telephone and <br>immediately and permanently delete the message <br>and any attachments. Thank you<br><br><br></pre>