From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brendan Cully Subject: Re: help on debugging kernel module in Xen Date: Fri, 12 Jan 2007 13:41:18 -0800 Message-ID: <20070112214118.GF4982@ventoux.cs.ubc.ca> References: <4d616cca0701121041n62b8ad05k7996ffe125c43043@mail.gmail.com> <20070112192049.GA4982@ventoux.cs.ubc.ca> <4d616cca0701121225p1018056ar24541c3a27c57518@mail.gmail.com> <20070112205358.GC4982@ventoux.cs.ubc.ca> <4d616cca0701121307p67b8235bxb16689093b791976@mail.gmail.com> <4d616cca0701121310u7d26b2e5wf874699ac9dedeca@mail.gmail.com> <20070112212645.GE4982@ventoux.cs.ubc.ca> <4d616cca0701121332p5787be2erc1a003d4e6e4e55c@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <4d616cca0701121332p5787be2erc1a003d4e6e4e55c@mail.gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Lily Huang Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Friday, 12 January 2007 at 16:32, Lily Huang wrote: > Hi Brendan, > > You are right. After I lift the breakpoint a little bit (to sys_open), the > breakpoint works. > > But now the domU kept complaining after I did "target remote 127.0.0.1:9999" > and then "br sys_open": > > /************************************************? > BUG: soft lockup detected on CPU#0! > > Pid: 0, comm: swapper > EIP: 0061:[] CPU: 0 > EIP is at 0xc01013a7 > EFLAGS: 00000346 Not tainted (2.6.16.33-xenU #12) > EAX: 00000000 EBX: 00000001 ECX: 00000000 EDX: 00000000 > ESI: 00000001 EDI: c0354000 EBP: c0355f84 DS: 007b ES: 007b > CR0: 8005003b CR2: b7f77000 CR3: 1d633000 CR4: 00000640 > [] show_trace+0x13/0x20 > [] show_regs+0x190/0x1e0 > [] softlockup_tick+0x88/0xa0 > [] do_timer+0x215/0x440 > [] timer_interrupt+0x1bc/0x6a0 > [] handle_IRQ_event+0x3f/0xd0 > [] __do_IRQ+0x8e/0xf0 > [] do_IRQ+0x1d/0x30 > [] evtchn_do_upcall+0xa1/0xe0 > [] hypervisor_callback+0x3d/0x48 > [] xen_idle+0x2f/0x60 > [] cpu_idle+0x72/0xc0 > [] rest_init+0x35/0x40 > [] start_kernel+0x2ea/0x3a0 > [] 0xc010006f > > /********************************************************/ > > What's wrong? Looks like I am really doomed to run into so many weird > problems. :( soft lockup gets triggered when the kernel hasn't gotten a timer interrupt in a while. This tends to happen frequently when the kernel is being debugged. I think there's a kernel config option to turn this off, or you can just live with the messages.