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 switch to debug mode to compile xen ?

To: 张树坤 <bitzsk@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] How to switch to debug mode to compile xen ?
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Tue, 02 Jun 2009 08:27:52 +0100
Cc:
Delivery-date: Tue, 02 Jun 2009 00:28:20 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <a160a7d60906020017v5038bfcdyab8d68af590c2855@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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcnjUlq9GoCjrd3xRA6NfTJUTycVNgAAUirD
Thread-topic: [Xen-devel] How to switch to debug mode to compile xen ?
User-agent: Microsoft-Entourage/12.17.0.090302
I don't think there is a config option to turn it on. Add:
EXTRA_CFLAGS := -DDEBUG
To drivers/xen/blkfront/Makefile and rebuild

 -- Keir

On 02/06/2009 08:17, "张树坤" <bitzsk@xxxxxxxxx> wrote:

> hi, 
> 
>     DPRINTK("do_blk_req %p: cmd %p, sec %llx, "
>             "(%u/%li) buffer:%p [%s]\n",
>             req, req->cmd, (long long)req->sector,
>             req->current_nr_sectors,
>             req->nr_sectors, req->buffer,
>             rq_data_dir(req) ? "write" : "read");
> 
> this statement is located in the blkfront.c file ,in the
> do_blkif_request(request_queue_t *rq)  function. i know DPRINTK is used for
> debug only. if i want to see the DPRINTK message , how could i do? that's how
> to open the debug mode to compile xen source code? Thanks!



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

<Prev in Thread] Current Thread [Next in Thread>