<div dir="ltr"><div class="gmail_extra"><tt>Hi,<br><br></tt>#include <inux/sched.h><br></div><div class="gmail_extra">....<br>init_func() <br>{<br>..<br>..<br></div><div class="gmail_extra">show_regs();<br></div><div class="gmail_extra">
}<br></div><div class="gmail_extra">Did you try including sched.h and calling show_regs() ?<br><br></div><div class="gmail_extra">Regards,<br>Manty<br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_quote">
On Tue, Jan 21, 2014 at 5:49 PM, naveen yadav <span dir="ltr"><<a href="mailto:yad.naveen@gmail.com" target="_blank">yad.naveen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear All,<br>
<br>
I want to dump ARM registers, show_regs(regs) in spin_dump() function.<br>
<br>
But show_regs get called only from traps or fault code. Any idea how<br>
we can do in normal scenario ?<br>
<br>
Also I check code pt_regs got updated in entry-armv.S, If any body<br>
have more idea how it is done.<br>
<br>
<br>
<br>
Thanks<br>
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</blockquote></div><br></div></div>