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

Re: [Xen-devel] function snprintf() in xen_save_domain.c for debugged

  • To: Olaf Hering <olaf@xxxxxxxxx>, Xen <xen-devel@xxxxxxxxxxxxx>
  • From: Adel Amani <adel.amani66@xxxxxxxxx>
  • Date: Mon, 3 Feb 2014 04:56:10 -0800 (PST)
  • Delivery-date: Mon, 03 Feb 2014 13:09:12 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=gbvBzMkvsFuJhj8eFej08rQwSrEqa2+LO245IhbAohptIXFHQrAT5bx+PpDf36RGEWJz92h3wRfcPt45j1KsnPyacEHUfCf2qi8RCys2G9clp9Ejo0ZKT9KNIEoeIyC8dKVRLspi2RhjeeGdARCI2NlZIJDtJKArJkvcMmF0JeU=;
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

Thanks, how i define logger for xc_interface_open to output print?!
can i use of code xc_save.c in xen 4.3.1 for logger in xen 4.1.2?!
Adel Amani
M.Sc. Candidate@Computer Engineering Department, University of Isfahan
Email: A.Amani@xxxxxxxxxxxx

On Sunday, February 2, 2014 1:30 PM, Olaf Hering <olaf@xxxxxxxxx> wrote:
On Sun, Feb 02, Adel Amani wrote:

> I check this function xc_domain_save.c, and attention at line 1185,
> function snprintf() amounts iter, sent_this_iter, skip_this_iter for
> print. (in xen 4.1.2 ) but i don't know where in amounts print!!! :-(
> Are except file xend.log where is another for print and debugged?

The output in 4.1 is sent to xend.log, but only if a logger function is
registered. Please follow the code from tools/xcutils/xc_save.c:main to
the actual xc_report_progress_start call in
tools/libxc/xc_domain_save.c, as you will note xc_interface_open is
called without logger which means no output is printed.

For an example how a logger could look like see the xc_interface_open
call in tools/xenpaging/xenpaging.c.


Xen-devel mailing list



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