From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adel Amani Subject: Re: function snprintf() in xen_save_domain.c for debugged Date: Mon, 3 Feb 2014 04:56:10 -0800 (PST) Message-ID: <1391432170.33697.YahooMailNeo@web161806.mail.bf1.yahoo.com> References: <1391331061.24599.YahooMailNeo@web161802.mail.bf1.yahoo.com> <20140202100044.GA5898@aepfle.de> Reply-To: Adel Amani Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0641910218065150884==" Return-path: In-Reply-To: <20140202100044.GA5898@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Olaf Hering , Xen List-Id: xen-devel@lists.xenproject.org --===============0641910218065150884== Content-Type: multipart/alternative; boundary="1665047788-284586231-1391432170=:33697" --1665047788-284586231-1391432170=:33697 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Thanks, how i define logger for=A0xc_interface_open to output print?!=0Acan= i use of code xc_save.c in xen 4.3.1 for logger in xen 4.1.2?!=0A=A0=0AAde= l Amani=0AM.Sc. Candidate@Computer Engineering Department, University of Is= fahan=0AEmail: A.Amani@eng.ui.ac.ir=0A=0A=0A=0AOn Sunday, February 2, 2014 = 1:30 PM, Olaf Hering wrote:=0A =0AOn Sun, Feb 02, Adel Ama= ni wrote:=0A=0A=0A> I check this function xc_domain_save.c, and attention a= t line 1185,=0A> function snprintf() amounts iter, sent_this_iter, skip_thi= s_iter for=0A> print. (in xen 4.1.2 ) but i don't know where in amounts pri= nt!!! :-( =0A> Are except file xend.log where is another for print and debu= gged?=0A=0AThe output in 4.1 is sent to xend.log, but only if a logger func= tion is=0Aregistered. Please follow the code from tools/xcutils/xc_save.c:m= ain to=0Athe actual xc_report_progress_start call in=0Atools/libxc/xc_domai= n_save.c, as you will note xc_interface_open is=0Acalled without logger whi= ch means no output is printed.=0A=0AFor an example how a logger could look = like see the xc_interface_open=0Acall in tools/xenpaging/xenpaging.c.=0A=0A= Olaf --1665047788-284586231-1391432170=:33697 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Thanks, how i = define logger for&= nbsp;xc_int= erface_open to output print?!
Adel Amani
M.Sc. Candidate@C= omputer Engineering Department, University of Isfahan
Email: A.Amani@eng.ui.ac.ir

=
On Sunday, February 2, = 2014 1:30 PM, Olaf Hering <olaf@aepfle.de> 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 amoun= ts print!!! :-(
> Are except file xend.log where is a= nother for print and debugged?


T= he 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 intools/libxc/xc_domain_save.c, as you will note xc_interface= _open is
called without logger which means no output is p= rinted.

For an example how a logger co= uld look like see the xc_interface_open
call in tools/xen= paging/xenpaging.c.

Olaf



<= /div>
--1665047788-284586231-1391432170=:33697-- --===============0641910218065150884== 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.xen.org http://lists.xen.org/xen-devel --===============0641910218065150884==--