From: "braham othmen" Subject: Write some informations from Netfront to Xenstore Date: Tue, 19 Aug 2008 10:30:50 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1508150977==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1508150977== Content-Type: multipart/alternative; boundary="----=_Part_18135_14844854.1219134651022" ------=_Part_18135_14844854.1219134651022 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 ------=_Part_18135_14844854.1219134651022 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
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



------=_Part_18135_14844854.1219134651022-- --===============1508150977== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1508150977==--