<div dir="ltr"><div>Hi Brian,<br><br></div>Your scripts works for me now after I installed all the rpm built out from kernel srpm. I'll try it. Thank you.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
2013/4/12 Brian Foster <span dir="ltr"><<a href="mailto:bfoster@redhat.com" target="_blank">bfoster@redhat.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 04/12/2013 04:32 AM, ·ûÓÀÌÎ wrote:<br>
> Dear xfs experts,<br>
> Can I just call xfs_stack_trace(); in the second line of<br>
> xfs_do_force_shutdown() to print stack and rebuild kernel to check<br>
> what's the error?<br>
><br>
<br>
</div>I suppose that's a start. If you're willing/able to create and run a<br>
modified kernel for the purpose of collecting more debug info, perhaps<br>
we can get a bit more creative in collecting more data on the problem<br>
(but a stack trace there is a good start).<br>
<br>
BTW- you might want to place the call after the XFS_FORCED_SHUTDOWN(mp)<br>
check almost halfway into the function to avoid duplicate messages.<br>
<br>
Brian<br>
<br>
><br>
> 2013/4/12 ·ûÓÀÌÎ <<a href="mailto:yongtaofu@gmail.com">yongtaofu@gmail.com</a> <mailto:<a href="mailto:yongtaofu@gmail.com">yongtaofu@gmail.com</a>>><br>
<div class="im">><br>
> Hi Brian,<br>
> What else I'm missing? Thank you.<br>
> stap -e 'probe module("xfs").function("xfs_iunlink"){}'<br>
><br>
> WARNING: cannot find module xfs debuginfo: No DWARF information found<br>
> semantic error: no match while resolving probe point<br>
> module("xfs").function("xfs_iunlink")<br>
> Pass 2: analysis failed. Try again with another '--vp 01' option.<br>
><br>
><br>
</div>> 2013/4/12 ·ûÓÀÌÎ <<a href="mailto:yongtaofu@gmail.com">yongtaofu@gmail.com</a> <mailto:<a href="mailto:yongtaofu@gmail.com">yongtaofu@gmail.com</a>>><br>
<div class="im">><br>
> ls -l<br>
> /usr/lib/debug/lib/modules/2.6.32-279.el6.x86_64/kernel/fs/xfs/xfs.ko.debug<br>
> -r--r--r-- 1 root root 21393024 Apr 12 12:08<br>
> /usr/lib/debug/lib/modules/2.6.32-279.el6.x86_64/kernel/fs/xfs/xfs.ko.debug<br>
><br>
> rpm -qa|grep kernel<br>
> kernel-headers-2.6.32-279.el6.x86_64<br>
> kernel-devel-2.6.32-279.el6.x86_64<br>
> kernel-2.6.32-358.el6.x86_64<br>
> kernel-debuginfo-common-x86_64-2.6.32-279.el6.x86_64<br>
> abrt-addon-kerneloops-2.0.8-6.el6.x86_64<br>
> kernel-firmware-2.6.32-358.el6.noarch<br>
> kernel-debug-2.6.32-358.el6.x86_64<br>
> kernel-debuginfo-2.6.32-279.el6.x86_64<br>
> dracut-kernel-004-283.el6.noarch<br>
> libreport-plugin-kerneloops-2.0.9-5.el6.x86_64<br>
> kernel-devel-2.6.32-358.el6.x86_64<br>
> kernel-2.6.32-279.el6.x86_64<br>
><br>
> rpm -q kernel-debuginfo<br>
> kernel-debuginfo-2.6.32-279.el6.x86_64<br>
><br>
> rpm -q kernel<br>
> kernel-2.6.32-279.el6.x86_64<br>
> kernel-2.6.32-358.el6.x86_64<br>
><br>
> do I need to re probe it?<br>
><br>
><br>
> 2013/4/12 Eric Sandeen <<a href="mailto:sandeen@sandeen.net">sandeen@sandeen.net</a><br>
</div>> <mailto:<a href="mailto:sandeen@sandeen.net">sandeen@sandeen.net</a>>><br>
<div class="HOEnZb"><div class="h5">><br>
> On 4/11/13 11:32 PM, ·ûÓÀÌÎ wrote:<br>
> > Hi Brian,<br>
> > Sorry but when I execute the script it says:<br>
> > WARNING: cannot find module xfs debuginfo: No DWARF<br>
> information found<br>
> > semantic error: no match while resolving probe point<br>
> module("xfs").function("xfs_iunlink")<br>
> ><br>
> > uname -a<br>
> > 2.6.32-279.el6.x86_64<br>
> > kernel debuginfo has been installed.<br>
> ><br>
> > Where can I find the correct xfs debuginfo?<br>
><br>
> it should be in the kernel-debuginfo rpm (of the same<br>
> version/release as the kernel rpm you're running)<br>
><br>
> You should have:<br>
><br>
> /usr/lib/debug/lib/modules/2.6.32-279.el6.x86_64/kernel/fs/xfs/xfs.ko.debug<br>
><br>
> If not, can you show:<br>
><br>
> # uname -a<br>
> # rpm -q kernel<br>
> # rpm -q kernel-debuginfo<br>
><br>
> -Eric<br>
><br>
><br>
><br>
><br>
><br>
> --<br>
> ·ûÓÀÌÎ<br>
><br>
><br>
><br>
><br>
> --<br>
> ·ûÓÀÌÎ<br>
><br>
><br>
><br>
><br>
> --<br>
> ·ûÓÀÌÎ<br>
><br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> xfs mailing list<br>
> <a href="mailto:xfs@oss.sgi.com">xfs@oss.sgi.com</a><br>
> <a href="http://oss.sgi.com/mailman/listinfo/xfs" target="_blank">http://oss.sgi.com/mailman/listinfo/xfs</a><br>
><br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>·ûÓÀÌÎ
</div>