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

[Xen-devel] Write some informations from Netfront to Xenstore

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Write some informations from Netfront to Xenstore
From: "braham othmen" <braham.othmen@xxxxxxxxx>
Date: Tue, 19 Aug 2008 10:30:50 +0200
Delivery-date: Tue, 19 Aug 2008 01:31:14 -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:in-reply-to:mime-version:content-type:references; bh=lEIPgBsBWjF1HJJwSujOqGXmmdjlJzUfBjvD8a0/blY=; b=PJEaSeVk6Cm2GivFjRhp1wnySYZHP+U1meHFodTj1n6TfU63LFN8vKOKifeinCwP8y 81urv6e8Exz7PccMsu6CPnznOWcCivJwFLz6NLR5oQU0HMDNe907aYN6pTPDHzphO+sW kp3OTnb33zZt+RMmM2M37x+GlByTv6usAT5Og=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=hhbDKAQMJhF7o+y3DdvX6pB7b5XfFXyfhB6wBPyBdAX6BawbzlDxHSaqJxVAwIZhtk rDJ6M+AYO7Ll0GNrJa8ynfoRPIQDQHzNU6Y4nBkGuR/KjuVuQ7jIlIfI7jA1BeBbNA5v WE4Ryb7a+BhPHKXbEca6OXZ9n3S6z1WNcQpOQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <de90d9af0808151437g1b69a40dq1bdfdae2b148b9fa@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: <de90d9af0808151437g1b69a40dq1bdfdae2b148b9fa@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

I'm trying to write some informations from linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c like the number of packets sent, received and dropped  to the Xenstore. I succeed to get the information written correctly for several second and than i got a crash of the virtual machine which had executed the instruction of writing.

For example:

  I  put this instruction ligne after updating the number of packets transmitted in netif_poll() function of the code

 np->stats.rx_packets++;  // rx packet update
 err = xenbus_printf(XBT_NIL,np->xbdev->nodename,"netfront_packet_rx","%lu ",np->stats.rx_packets); // the information is correctly written  before the crash of the virtual machine
 

thank for your help and recommendations

Braham Othmen



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Write some informations from Netfront to Xenstore, braham othmen <=