[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • 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
  • 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=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.