From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCH 3/3] KVM: perf: kvm events analysis tool Date: Tue, 17 Jan 2012 09:59:13 -0200 Message-ID: <20120117115913.GC17420@amt.cnet> References: <4F13EE3D.2070602@linux.vnet.ibm.com> <4F13EEC5.8050807@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Xiao Guangrong , Avi Kivity , LKML , KVM To: Stefan Hajnoczi Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Mon, Jan 16, 2012 at 10:08:40AM +0000, Stefan Hajnoczi wrote: > On Mon, Jan 16, 2012 at 9:32 AM, Xiao Guangrong > wrote: > > +DESCRIPTION > > +----------- > > +You can analyze some crucial events and statistics with this > > +'perf kvm-events' command. >=20 > This line is very general and does not explain which events/statistic= s > can be collected or how you can use that information. I suggest > making this description more specific. Explain that this subcommand > observers kvm.ko tracepoints and annotates/decodes them with > additional information (this is why I would use this command and not > raw perf record -e kvm:\*). >=20 > > + =A0 =A0 =A0 { SVM_EXIT_MONITOR, =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 "monitor" }, \ > > + =A0 =A0 =A0 { SVM_EXIT_MWAIT, =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 "mwait" }, \ > > + =A0 =A0 =A0 { SVM_EXIT_XSETBV, =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0"xsetbv" }, \ > > + =A0 =A0 =A0 { SVM_EXIT_NPF, =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 "npf" } >=20 > All this copy-paste could be avoided by sharing this stuff with the > arch/x86/kvm/ code. Yes, same for KVM_MAX_VCPUS.