From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: Re: [PATCH 06/15] xen: trace IRQ enabling/disabling Date: Thu, 8 Jun 2017 18:11:16 +0200 Message-ID: <1496938276.9462.35.camel@citrix.com> References: <149633614204.12814.14390287626133023934.stgit@Solace.fritz.box> <149633845700.12814.7130992212550379105.stgit@Solace.fritz.box> <6629d7b1-527a-e95c-680b-787f53439bdf@citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2239489470335057253==" Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJ021-0000ZM-QR for xen-devel@lists.xenproject.org; Thu, 08 Jun 2017 16:11:33 +0000 In-Reply-To: <6629d7b1-527a-e95c-680b-787f53439bdf@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: George Dunlap , xen-devel@lists.xenproject.org Cc: Stefano Stabellini , George Dunlap , Andrew Cooper , Jennifer Herbert , Julien Grall , Jan Beulich List-Id: xen-devel@lists.xenproject.org --===============2239489470335057253== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="=-zQNRRR/FqQfhU9HmIvkf" --=-zQNRRR/FqQfhU9HmIvkf Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2017-06-08 at 17:01 +0100, George Dunlap wrote: > On 01/06/17 18:34, Dario Faggioli wrote: > > diff --git a/xen/Kconfig.debug b/xen/Kconfig.debug > > index 374c1c0..81910c9 100644 > > --- a/xen/Kconfig.debug > > +++ b/xen/Kconfig.debug > > @@ -98,7 +98,7 @@ config PERF_ARRAYS > > =C2=A0 ---help--- > > =C2=A0 =C2=A0=C2=A0Enables software performance counter array histogram= s. > > =C2=A0 > > -config TRACING > > +menuconfig TRACING > > =C2=A0 bool "Tracing" > > =C2=A0 default y > > =C2=A0 ---help--- > > @@ -106,6 +106,15 @@ config TRACING > > =C2=A0 =C2=A0=C2=A0in per-CPU ring buffers. The 'xentrace' tool can be = used > > to read > > =C2=A0 =C2=A0=C2=A0the buffers and dump the content on the disk. > > =C2=A0 > > +config TRACE_IRQSOFF > > + bool "Trace when IRQs are disabled and (re)enabled" if > > EXPERT =3D "y" > > + default n > > + depends on TRACING > > + ---help--- > > + =C2=A0=C2=A0Makes it possible to generate events _every_ time IRQs > > are disabled > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0and (re)en= abled, with also an indication of where that > > happened. > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Note that = this comes with high overead and produces huge > > amount of > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0tracing da= ta. >=20 > I think I might emphasize that the overhead well be present even when > tracing is off.=C2=A0=C2=A0What about something like this? >=20 Yes, good point. > "Note that this comes with an overhead even when tracing is disabled; > and has a high overhead and produces a large amount of tracing data > when > enabled." >=20 I like it, I'll go for it. > With that change: >=20 > Acked-by: George Dunlap >=20 Thanks and Regards, Dario --=20 <> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) --=-zQNRRR/FqQfhU9HmIvkf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABCAAGBQJZOXclAAoJEBZCeImluHPuSXgP/24P1EEqrg0A0D4H58TKekFv i798MuDIdXj0vqoZ9tziI/ox1Eqivx5hrbDgI4F6dRumdNk0/mQVsDF1VHfkovvz O8N00NHTn6m7/DbORL/e0hFcbOnzVOB9BohnmZPP8MRGaMsFGfgLegiBH4nEj7wt o9qe/COlUo+qcyb5Qm3tG4nEoRj5IW8X0MEbOoov3EbSBWTg5Kkh48f39OQWku9k /6ktFseMdpVYCs4x0kJoJHmR/gY2dGSuKhXZHO8SOgqJLMhq3wTDCEiGI66wcGRU WkkIooo70RHuX/qghOfxEfJf8YqCk6He0F1te5kEvfa1QfFqUrjcSNyn0IYpyqjP C8R+3RiL+Kox84TSCJSHqqerfVKKTEgSUcFEr2OkpJN11jQYyTnFbuxnOb8QcSN8 aLIrXrfPho7Y48D9C0jcMkn5AQFQUTynbiB9tAZItDa/E6xgszJmoCu7+e7RPDYD t+Uir3oyjnDjM+ylyRY1mUsVuaM6wGFhQa5ZSsmubaJ88TvR9u85+gx/M3nq7IDu z52L1yQsLYCXkHuThA8pqAu/TgK+jLO8UD6zu4Cb0/kz+R0p+XgTSllXJdz+TNrz 2LeJ2NLVlFBaKtu9YQX9MlGvI1nPlkPnwxT83qHwL+zz3ujG98Qv0myBRU84FXcb q2GTsX2/MWjQi0ukqG0r =EE5E -----END PGP SIGNATURE----- --=-zQNRRR/FqQfhU9HmIvkf-- --===============2239489470335057253== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwczovL2xpc3RzLnhlbi5v cmcveGVuLWRldmVsCg== --===============2239489470335057253==--