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] Sending messages from Xen to a domain with VIRQ_DEBUG

To: xen-devel@xxxxxxxxxxxxxxxxxxx, rosenrami@xxxxxxxxx
Subject: Re: [Xen-devel] Sending messages from Xen to a domain with VIRQ_DEBUG
From: Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Date: Thu, 15 Sep 2005 18:21:18 +0100
Delivery-date: Thu, 15 Sep 2005 17:18:00 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <ae5426fb0509150400429fe99c@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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <ae5426fb0509150400429fe99c@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.8
Hi Rami,

Good to see you're having fun with the code ;-)

If you just want to log occasional events you might as well use printk.  The 
printks won't appear on the console, as you say.  They can either be captured 
from the serial line, or you can view them using the "xm dmesg" command.

Cheers,
Mark

On Thursday 15 September 2005 12:00, Rami Rosen wrote:
> Hello,
>
> Is there a way to send messages (for debugging purposes) from Xen to a
> domain with some text?
>
> I want to add "printk" messages in certain points in Xen for tracing
> and debugging purposes.
>
> As I understand, when I add printk messages to Xen they will appear only in
> boot time on the terminal. After domain 0 is created and up, printk()
> messages
> in Xen will not appear in /var/log/messages or on terminal.
>
> I had tried to add in some point in Xen:
>
> .........
> for_each_vcpu(d,v)
> send_guest_virq(v,VIRQ_DEBUG);
> .....
> When I reach this point in Xen , it generates the following:
> in the syslog (of domain0)
> ...
> netif_schedule_list:
> kernel: ** End of netif_schedule_list **
> ...
>
> (I assume that this is somehow connected to the call:
> request_irq(bind_virq_to_irq(VIRQ_DEBUG),...
> in netback.c but I don't know the exact origin of this message)
>
>
> Is there a way to send a message from Xen to a domain with some chosen text
> ?
>
> Regards,
> Rami Rosen

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

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