[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <82D7661F83C1A047AF7DC287873BF1E17389190B@SHSMSX104.ccr.corp.intel.com>
Date: Fri, 6 Mar 2020 05:37:15 +0000
From: "Kang, Luwei" <luwei.kang@...el.com>
To: Andi Kleen <ak@...ux.intel.com>
CC: "x86@...nel.org" <x86@...nel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"kvm@...r.kernel.org" <kvm@...r.kernel.org>,
"peterz@...radead.org" <peterz@...radead.org>,
"mingo@...hat.com" <mingo@...hat.com>,
"acme@...nel.org" <acme@...nel.org>,
"mark.rutland@....com" <mark.rutland@....com>,
"alexander.shishkin@...ux.intel.com"
<alexander.shishkin@...ux.intel.com>,
"jolsa@...hat.com" <jolsa@...hat.com>,
"namhyung@...nel.org" <namhyung@...nel.org>,
"tglx@...utronix.de" <tglx@...utronix.de>,
"bp@...en8.de" <bp@...en8.de>, "hpa@...or.com" <hpa@...or.com>,
"pbonzini@...hat.com" <pbonzini@...hat.com>,
"Christopherson, Sean J" <sean.j.christopherson@...el.com>,
"vkuznets@...hat.com" <vkuznets@...hat.com>,
"wanpengli@...cent.com" <wanpengli@...cent.com>,
"jmattson@...gle.com" <jmattson@...gle.com>,
"joro@...tes.org" <joro@...tes.org>,
"pawan.kumar.gupta@...ux.intel.com"
<pawan.kumar.gupta@...ux.intel.com>,
"thomas.lendacky@....com" <thomas.lendacky@....com>,
"Yu, Fenghua" <fenghua.yu@...el.com>,
"kan.liang@...ux.intel.com" <kan.liang@...ux.intel.com>,
"like.xu@...ux.intel.com" <like.xu@...ux.intel.com>
Subject: RE: [PATCH v1 00/11] PEBS virtualization enabling via DS
> Subject: Re: [PATCH v1 00/11] PEBS virtualization enabling via DS
>
> > Testing:
> > The guest can use PEBS feature like native. e.g.
>
> Could you please add example qemu command lines too? That will make it
> much easier for someone to reproduce.
I introduce a new CPU parameter "pebs" to enable PEBS in KVM guest(disabled in default)
e.g. "qemu-system-x86_64 -enable-kvm -M q35 -cpu Icelake-Server,pmu=true,pebs=true ...."
[PATCH v1 0/3] PEBS virtualization enabling via DS in Qemu
https://lore.kernel.org/qemu-devel/1583490005-27761-1-git-send-email-luwei.kang@intel.com/
Thanks,
Luwei Kang
>
> -Andi
> >
> > # perf record -e instructions:ppp ./br_instr a
> >
> > perf report on guest:
> > # Samples: 2K of event 'instructions:ppp', # Event count (approx.):
> 1473377250
> > # Overhead Command Shared Object Symbol
> > 57.74% br_instr br_instr [.] lfsr_cond
> > 41.40% br_instr br_instr [.] cmp_end
> > 0.21% br_instr [kernel.kallsyms] [k] __lock_acquire
> >
> > perf report on host:
> > # Samples: 2K of event 'instructions:ppp', # Event count (approx.):
> 1462721386
> > # Overhead Command Shared Object Symbol
> > 57.90% br_instr br_instr [.] lfsr_cond
> > 41.95% br_instr br_instr [.] cmp_end
> > 0.05% br_instr [kernel.vmlinux] [k] lock_acquire
Powered by blists - more mailing lists