From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: [PATCH] perfc: count number of explicit vcpu yields Date: Mon, 9 Nov 2015 11:03:41 -0500 Message-ID: <20151109160341.GD8121@char.us.oracle.com> References: <1447077658-6997-1-git-send-email-ian.campbell@citrix.com> <1447080838.2722.8.camel@citrix.com> <5640B595.6050803@oracle.com> <1447082052.2722.11.camel@citrix.com> <1447082626.9407.4.camel@citrix.com> <1447084040.2722.12.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1447084040.2722.12.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Dario Faggioli Cc: Boris Ostrovsky , jbeulich@suse.com, Ian Campbell , george.dunlap@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Mon, Nov 09, 2015 at 04:47:20PM +0100, Dario Faggioli wrote: > On Mon, 2015-11-09 at 15:23 +0000, Ian Campbell wrote: > > On Mon, 2015-11-09 at 16:14 +0100, Dario Faggioli wrote: > > > > > > > As far as xl accessibility --- doesn't xenperf already read them > > > > out? > > > > > > > Mmm... ISTR having tried without much luck, and having heard that > > > it > > > wasn't functional any longer, but maybe I'm confusing it with > > > something > > > else. I'll try again. > > > > I happened to have an xterm with this in its scroll buffer from > > earlier: > > > > root@marilith-n0:~# xenperf > > invalid hypercalls T= 0 0 > > 0 0 0 > > trap: wfi T= 85068 56068 > > 11762 8461 8777 > > trap: wfe T= 2811 614 > > 716 964 517 > > trap: cp15 32-bit access T= 4 1 > > 1 1 1 > > trap: cp15 64-bit access T= 0 0 > > 0 0 0 > > trap: cp14 32-bit access T= 0 0 > > 0 0 0 > > trap: cp14 64-bit access T= 0 0 > > 0 0 0 > > trap: cp14 dbg access T= 0 0 > > 0 0 0 > > trap: cp access T= 0 0 > > 0 0 0 > > trap: 32-bit smc T= 0 0 > > 0 0 0 > > trap: 32-bit hvc T= 1291 510 > > 568 161 52 > > trap: guest instr abort T= 0 0 > > 0 0 0 > > trap: guest data abort T= 16446 6885 > > 4358 3431 1772 > > trap: condition failed T= 0 0 > > 0 0 0 > > [...] > > > > So I think it works. > > > Ok, thanks for the confirmation, and sorry for the noise then. > > > You need to build the hypervisor binary with perfc=y (and optionally > > perfc_arrays=y) or it doesn't do anything. > > > Yeah, that I knew. And you need to apply an patch this patch for x86: http://lists.xen.org/archives/html/xen-devel/2015-11/msg00633.html since the lock_profile also adds tons of data in the 'struct spinlock' making the 'struct domain' bigger than 4K (to 68K!). > > Thanks again and Regards, > Dario > -- > <> (Raistlin Majere) > ----------------------------------------------------------------- > Dario Faggioli, Ph.D, http://about.me/dario.faggioli > Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel