From: Steven Haigh Subject: Re: xenconsoled logging to syslog (HELP REQUESTED) Date: Thu, 12 Jun 2014 00:10:24 +1000 Message-ID: <53986350.5000803@crc.id.au> References: <53915221.9030307@crc.id.au> <1402046710.31120.5.camel@kazak.uk.xensource.com> <53919DA0.6000101@crc.id.au> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0443822978696733922==" Return-path: In-Reply-To: <53919DA0.6000101@crc.id.au> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============0443822978696733922== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7MCKW1HLJPb2C0Tj5eS6tb9I1fmdIs3sm" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --7MCKW1HLJPb2C0Tj5eS6tb9I1fmdIs3sm Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Just giving this a bump in hope that someone can take up the challenge. On 06/06/14 20:53, Steven Haigh wrote: > On 06/06/14 19:25, Ian Campbell wrote: >> On Fri, 2014-06-06 at 15:31 +1000, Steven Haigh wrote: >>> Hi all, >>> >>> I found an old thread from this list a long time ago ( May 2012 - >>> http://xen.1045712.n5.nabble.com/PATCH-tools-xenconsoled-Add-syslog-t= d5699696.html >>> ) and I can see that it was signed off etc... >> >> S-o-b !=3D Acked. I asked some questions which were never answered (at= >> least not according to that link). >> >> Jean has since moved on, I think Eric has too. >> >>> I was trying to find out what happened to this thread and why it does= n't >>> seem to be present these days? >>> >>> Has anyone got any further news other than it was delayed due to the >>> v4.2 feature freeze? >> >> At least on the basis of the thread you found it was never updated bas= ed >> on the feedback and therefore was never acked and never applied. If it= >> was reposted then presumably that new thread would have more informati= on >> on what happened to it. >> >> But given that it evidently isn't in the tree now and the people >> involved are no longer around someone else needs to step up, address t= he >> issues with it and resubmit it for it to have a chance to go in. Are y= ou >> interested in doing that? >=20 > I'm not exactly sure if I am well enough versed in C programming to > really know what is going on - but I can have a look at it... >=20 > I did find a v2 of the patch on the Xen mailing lists: > http://lists.xen.org/archives/html/xen-devel/2012-05/msg01796.html >=20 > It doesn't quite apply properly as is to Xen 4.4.0: > $ patch -p1 < ../xenconsoled-syslog.patch > patching file tools/console/daemon/io.c > Hunk #1 succeeded at 63 (offset 1 line). > Hunk #2 succeeded at 87 with fuzz 2 (offset 6 lines). > Hunk #3 succeeded at 124 (offset 9 lines). > Hunk #4 succeeded at 193 (offset 9 lines). > Hunk #5 succeeded at 237 (offset 9 lines). > Hunk #6 succeeded at 337 (offset 10 lines). > Hunk #7 succeeded at 363 (offset 11 lines). > Hunk #8 FAILED at 693. > Hunk #9 succeeded at 774 (offset 25 lines). > Hunk #10 FAILED at 930. > Hunk #11 succeeded at 1047 (offset 65 lines). > 2 out of 11 hunks FAILED -- saving rejects to file > tools/console/daemon/io.c.rej > patching file tools/console/daemon/main.c >=20 > Those failures are Hunk 8: > @@ -656,6 +693,7 @@ static struct domain *create_domain(int domid) > dom->remote_port =3D -1; > dom->interface =3D NULL; > dom->xce_handle =3D NULL; > + dom->name =3D NULL; >=20 > if (!watch_domain(dom, true)) > goto out; >=20 > and Hunk 10: > @@ -888,17 +931,23 @@ static void handle_hv_logs(void) > return; >=20 > if (xc_readconsolering(xch, bufptr, &size, 0, 1, &index) =3D=3D= 0 && > size > 0) { > - int logret; > - if (log_time_hv) > - logret =3D write_with_timestamp(log_hv_fd, buff= er, > size, > - &log_time_hv_need= ts); > - else > - logret =3D write_all(log_hv_fd, buffer, size); > + if (log_hv_fd !=3D -1) { > + int logret; > + if (log_time_hv) > + logret =3D write_with_timestamp(log_hv_= fd, > buffer, size, > + > &log_time_hv_needts); > + else > + logret =3D write_all(log_hv_fd, buffer,= size); > + > + if (logret < 0) > + dolog(LOG_ERR, "Failed to write > hypervisor log: " > + "%d (%s)", errno, > strerror(errno)); > + } >=20 > - if (logret < 0) > - dolog(LOG_ERR, "Failed to write hypervisor log:= " > - "%d (%s)", errno, strerror(errno= )); > - } > + if (use_syslog) > + write_syslog(NULL, buffer, size); > + > + } >=20 > (void)xc_evtchn_unmask(xce_handle, port); > } >=20 > To be perfectly honest, I'm not sure what is going on in Hunk 10 - and > Hunk 8 may well just have been rewritten for later versions of Xen. >=20 > Sadly, there is no other version information in the patch or documents > to give a hint as to what version of Xen this was targetted at - except= > that it was originally posted around May 2012... --=20 Steven Haigh Email: netwiz@crc.id.au Web: http://www.crc.id.au Phone: (03) 9001 6090 - 0412 935 897 Fax: (03) 8338 0299 --7MCKW1HLJPb2C0Tj5eS6tb9I1fmdIs3sm Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJTmGNQAAoJEEGvNdV6fTHc98oQAIHuKamLEQIjXNSXH4uSGjK1 BWp4XnnXJc7/xGutKvqyTASnovqU17/7MVce88A83BqZn0hdD1KjXrkrEk0Y+2+g 8TQileyHHymsp70C3Og9tO1fyy60qFgQPlxk+0+admCCibxkUn6Ul/JFL45imb/A xXy1NHEkJqyNS4LHbmIkJz9ClCkAXfStvJlxqEdW230N+5WQqMxNSv0030keGmg+ 8FvG6mv+bvyfU31kd4KlZTSOLB/qbj6tli5QVQ0FwvMVSiDC0MNwdvUWKgbk779w jD97rvHOlYw7DT0XnCTt+/hLA8aoqjWi32iTsAt5DW22//y/jnwmsnevzvfmoKES luHtaJkTJJkiQkqfG6mW4w2W/NdujWicgf/r8iB75FbvjrVHSfflHvn/J1Z7/G2v 86aPB1voTQdbK+S/5M/fUJHANIdC/IKZlbvM/+WijT+TjITcktJ1+JqL9RhvBy8p 6iz9hm/9iUelbtm+3mFCb5Ic5aOL44MIBIL8n+HPe+oMLl25MBiqug0SkarH0N+T EcrQKalf1cdaO27PRuS7c8nAVtsaN+eh+f4ZLjnFPelElW4jd6fctBYFwFRxjJD3 vhOYHOhUpRmhsF2IveWhK/hD9S3GzprVisxgnloiLAh5HC8vjjCYmdK1NGvIX09Y 01QDJ0ZA0c4W64JCPS3F =rzt+ -----END PGP SIGNATURE----- --7MCKW1HLJPb2C0Tj5eS6tb9I1fmdIs3sm-- --===============0443822978696733922== 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 --===============0443822978696733922==--