[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v2 2/2] x86/VPMU: implement ipc and arch filter flags





On Thu, Nov 26, 2015 at 12:11 AM, Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxx> wrote:
Am Dienstag 24 November 2015, 15:53:12 schrieb Brendan Gregg:
> This introduces a way to have a restricted VPMU, by specifying one of two
> predefined groups of PMCs to make available. For secure environments, this
> allows the VPMU to be used without needing to enable all PMCs.
>
> Signed-off-by: Brendan Gregg <bgregg@xxxxxxxxxxx>
> ---
>Â docs/misc/xen-command-line.markdown | 14 +++++++++-
> xen/arch/x86/cpu/vpmu.c      Â| 51 +++++++++++++++++++++++++++++--------
> xen/arch/x86/cpu/vpmu_intel.c   Â| 48 ++++++++++++++++++++++++++++++++++
> xen/include/asm-x86/msr-index.h  Â| 1 +
> xen/include/public/pmu.h      | 14 ++++++++--
>Â 5 files changed, 115 insertions(+), 13 deletions(-)
>
> diff --git a/docs/misc/xen-command-line.markdown b/docs/misc/xen-command-line.markdown
> index 70daa84..6055a68 100644
> --- a/docs/misc/xen-command-line.markdown
> +++ b/docs/misc/xen-command-line.markdown
> @@ -1452,7 +1452,7 @@ Use Virtual Processor ID support if available. This prevents the need for TLB
>Â flushes on VM entry and exit, increasing performance.
>
>Â ### vpmu
> -> `= ( bts )`
> +> `= ( <boolean> | { bts | ipc | arch [, ...] } )`
>
>Â > Default: `off`
>
> @@ -1468,6 +1468,18 @@ wrong behaviour (see handle\_pmc\_quirk()).
>Â If 'vpmu=bts' is specified the virtualisation of the Branch Trace Store (BTS)
>Â feature is switched on on Intel processors supporting this feature.
>
> +vpmu=ipc enables performance monitoring, but restricts the counters to the
> +most minimum set possible: instructions, cycles, and reference cycles. These
> +can be used to calculate instructions per cycle (IPC).
> +
> +vpmu=arch enables performance monitoring, but restricts the counters to the
> +pre-defined architectural events only. These are exposed by cpuid, and listed
> +in Table 18-1 from the Intel 64 and IA-32 Architectures Software Developer's
> +Manual, Volume 3B, System Programming Guide, Part 2.

Maybe you better should write
section "Pre-defined Architectural Performance Events"
instead of "Table 18-1" because the number may change in the document.
And below in the comment of the code too.

Ah, thanks, yes, otherwise it'd be pretty confusing if it changed and I was pointing people to the wrong table.

Brendan

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.