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 20:04:05 +0530
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 08 Oct 2008 07:34:32 -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=pr7rfBYtkHdITBmx3zcnk2cEYQ8VBZGdOGpFib5kuDo=; b=nagKj+AHUpSgx+6sME2PE3y+Di5ztBn9nVF7b5y3V3znVG5/1wZtHZdIkyhEGGCKaV ComeDn2dUAXOHnuj3JV1C8oEL8htxd6XsZPR+NNN99I0mmexGgmPpMbI8XFOXDtGRn/K x0aDm3Mx/ukRzVQpk+UwX7yoOVqSJOAjeq9N4=
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=IwQT/4g/vt0UW2tl6ohSdAgZFteEkF+wgbr0p8airtbwbdUrpRg4gpAeh38x77PwzG Z/dwD5l+nmDPp0yLnuD7ZrAYu/5sbH9mQOUl74fxNwbY5cZHmO/FzEYI6M3t1nz/M/rg mWxHYCzTxBm3H6QJh0pyMe1hYCXpu6LWAIKlQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <5d649bdb0810080046i44e9751dh5aecc7892fd19c9a@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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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.

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
>

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