[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] help on debugging kernel module in Xen
That's a great point. I just disabled the "Detect Soft Lockup" option in the "kernel hacking" group. Now the soft lockup disappeared and I can debug kernel now. Next, I tried to debug kernel module in domU. New problem occurs. After I set "br xxx(function in a loaded kernel module" and then "cont", I worked in the domu to activate the breakpoint. Unfortunately, I found domU immediately print error messages: /**********************************************************/ Message from syslogd@normal at Fri Jan 12 17:54:41 2007 ... normal kernel: int3: 0000 [#1] <----------------------------------------------------- seems to be a problem Message from syslogd@normal at Fri Jan 12 17:54:41 2007 ... normal kernel: SMP Message from syslogd@normal at Fri Jan 12 17:54:41 2007 ... normal kernel: CPU: 0 Message from syslogd@normal at Fri Jan 12 17:54:41 2007 ... normal kernel: EIP is at nfs3_proc_readdir+0xd/0x100 [nfs] Message from syslogd@normal at Fri Jan 12 17:54:41 2007 ... normal kernel: eax: daa0c740 ebx: 00001000 ecx: c1353aa0 edx: db25cd14 Message from syslogd@normal at Fri Jan 12 17:54:41 2007 ... normal kernel: esi: df02ced0 edi: daa0885c ebp: da9c7d34 esp: da9c7c4c Message from syslogd@normal at Fri Jan 12 17:54:41 2007 ... normal kernel: ds: 007b es: 007b ss: 0069 Message from syslogd@normal at Fri Jan 12 17:54:41 2007 ... normal kernel: Process ls (pid: 1670, threadinfo=da9c6000 task=c05d7070) /**********************************************************/ Looks like "int 3" triggered kernel error. Why just for kernel module debugging? BTW: I built the kernel moduel with "-g" option and use gdb command to load module symbols /*************************************************/ add-symbol-file /path/to/module.ko 0xdf01f000 \ -s .altinstr_replacement 0xdf036629 \ -s .altinstructions 0xdf03add0 \ -s .bss 0xdf042a60 \ -s .data 0xdf041a20 \ -s .exit.text 0xdf0365f0 \ -s .gnu.linkonce.this_module 0xdf042840 \ -s .init.text 0xdf045000 \ -s .rodata 0xdf036680 \ -s .rodata.str1.1 0xdf039ef4 \ -s .rodata.str1.4 0xdf036cb8 \ -s .strtab 0xdf03e450 \ -s .symtab 0xdf03aec0 /*************************************************/ Thanks, lily On 1/12/07, Brendan Cully <brendan@xxxxxxxxx> wrote: On Friday, 12 January 2007 at 16:32, Lily Huang wrote: _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |