WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] How to debug Xen and Dom0 driver?

To: "Neo Jia" <neojia@xxxxxxxxx>
Subject: Re: [Xen-devel] How to debug Xen and Dom0 driver?
From: Tej <bewith.tej@xxxxxxxxx>
Date: Wed, 8 Oct 2008 23:40:25 +0530
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Sandesh <sandesh.ahiremath@xxxxxxxxx>
Delivery-date: Wed, 08 Oct 2008 11:11:16 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=UwDgJEeDdGuhQ3ABULbJiZrEA6YrDN0uV1rvOGhzJHU=; b=Nkj4Bj+pgeLs02hgDcOsBSxzJSkpJkOOrntbR9oODGXLq2OZB1WVFe7G/7tmxem6Fe ouuyhrQuERlWAZJkt3ZNRZ2X+iNUJbvPs1JrrBS9T0k3tIHoyaa5qOEnKZGP2+l31GNr kHB0/GxizhXxfekA9CihgYqLifMfBrQmv+ggI=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=JYlo1vnmQIrA5PoqvdtR7bTiVyr/FdTbQPj2rRUFEECCJAaglJqvn8huqeuvOjS46e FqivZTbdsyJhrNGl8awFR1PfgxjfUKPPFd0zc9+QYr/pUo5r4mMSfVgLzQ2O+OVOW7jp lIeovYV0CREo575hS7StYQzDOcLTN/AmHklt8=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <5d649bdb0810080949r1a90788aqcd9d4bb9eb8187f1@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <5d649bdb0810080046i44e9751dh5aecc7892fd19c9a@xxxxxxxxxxxxxx> <f1c9d250810080734u6b642eaas29da13cadd88e97a@xxxxxxxxxxxxxx> <5d649bdb0810080938y34c914c3u792388440fce698@xxxxxxxxxxxxxx> <1223484380.3675.6.camel@ec4t16cg-1518809> <5d649bdb0810080949r1a90788aqcd9d4bb9eb8187f1@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Wed, Oct 8, 2008 at 10:19 PM, Neo Jia <neojia@xxxxxxxxx> wrote:
> On Wed, Oct 8, 2008 at 9:46 AM, Sandesh <sandesh.ahiremath@xxxxxxxxx> wrote:
>> If you want to debug dom0, use kdb instead of gdb. Apply the kdb patch
>> suitable to you kernel version, build it and run.
>
> Do you have a kdb patch for 2.6.18 available? If yes, could you share with me?

ftp://oss.sgi.com/www/projects/kdb/download/v4.4/
refer readme, then apply patches

thanks
-tej


>
> Thanks,
> Neo
>
>
>>
>> On Wed, 2008-10-08 at 09:38 -0700, Neo Jia wrote:
>>> On Wed, Oct 8, 2008 at 7:34 AM, Tej <bewith.tej@xxxxxxxxx> wrote:
>>> > On Wed, Oct 8, 2008 at 1:16 PM, Neo Jia <neojia@xxxxxxxxx> wrote:
>>> >> hi,
>>> >>
>>> >> I am wondering if anybody is doing Xen or Dom0 debugging with gdb
>>> >> here. If yes, could you show me the procedure of doing that?
>>> >
>>> > For dom0, it will be similar to debugging in Linux e.g Use kgdb,
>>> > netdump, kdump etc.  and analyse those dump using crash tools.
>>>
>>> This is what I want to know more. How to use kgdb with dom0? I assume
>>> you can't as the TSS is in Xen not dom0, right?
>>>
>>> Thanks,
>>> Neo
>>>
>>> >
>>> > For domU use gdb built in debugger with xen.
>>> > 1. cd xen-3.3.0/tool/debugger/gdb/README
>>> >   This explains everything from setting gdbserver-xen to debugging with 
>>> > gdb.
>>> > 2. enable xendump by configuring xend-config.sxp file
>>> >    It is helpful for capturing vmcore dumps  from xen guest.
>>> >   #(enable-dump no) change to (enable-dump yes)
>>> >   Restart xend
>>> >   start domU's and capture the vmcore @ /var/crash/*
>>> >   analyse the dump with crash
>>> >
>>> > HTH
>>> > -tej
>>> >
>>> >
>>> >
>>> >
>>> >>
>>> >> Thanks,
>>> >> Neo
>>> >>
>>> >> --
>>> >> I would remember that if researchers were not ambitious
>>> >> probably today we haven't the technology we are using!
>>> >>
>>> >> _______________________________________________
>>> >> Xen-devel mailing list
>>> >> Xen-devel@xxxxxxxxxxxxxxxxxxx
>>> >> http://lists.xensource.com/xen-devel
>>> >>
>>> >
>>>
>>>
>>>
>>
>>
>> Please do not print this email unless it is absolutely necessary.
>>
>> The information contained in this electronic message and any attachments to 
>> this message are intended for the exclusive use of the addressee(s) and may 
>> contain proprietary, confidential or privileged information. If you are not 
>> the intended recipient, you should not disseminate, distribute or copy this 
>> e-mail. Please notify the sender immediately and destroy all copies of this 
>> message and any attachments.
>>
>> WARNING: Computer viruses can be transmitted via email. The recipient should 
>> check this email and any attachments for the presence of viruses. The 
>> company accepts no liability for any damage caused by any virus transmitted 
>> by this email.
>>
>> www.wipro.com
>>
>
>
>
> --
> I would remember that if researchers were not ambitious
> probably today we haven't the technology we are using!
>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel