Skip to content

perf support for x86 guest/host-only bits

Gleb Natapov kvm lkml 2 versions – Applied

Status from this message: I queued bits, and they should hopefully find their way to tip:perf/core

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 9 repliesApplied
  2. v19 patches 13 repliesSuperseded

Changes in v2 from the cover letter

- move perf_guest_switch_msr array to perf code.
- small cosmetic changes.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/9perf, core: Introduce attrs to count in either host or guest modeinclude/linux/perf_event.h+4 -10 replies
2/9perf, amd: Use GO/HO bits in perf-ctrarch/x86/include/asm/perf_event.h arch/x86/kernel/cpu/perf_event_amd.c+16 -00 replies
3/9perf, tools: Add support for guest/host-only profilingtools/perf/util/parse-events.c+12 -20 replies
4/9perf, tools: Fix copy&paste error in perf-kvm option descriptiontools/perf/builtin-kvm.c+1 -11 reply
5/9perf, tools: Do guest-only counting in perf-kvm by defaulttools/perf/builtin-kvm.c tools/perf/util/event.c tools/perf/util/event.h +2 more+17 -20 replies
6/9perf, intel: Use GO/HO bits in perf-ctrarch/x86/include/asm/perf_event.h arch/x86/kernel/cpu/perf_event.c arch/x86/kernel/cpu/perf_event_intel.c+113 -31 reply
7/9KVM, VMX: add support for switching of PERF_GLOBAL_CTRLarch/x86/kvm/vmx.c+93 -110 replies
8/9KVM, VMX: Add support for guest/host-only profilingarch/x86/kvm/vmx.c+21 -03 replies
9/9KVM, VMX: Check for automatic switch msr table overflow.arch/x86/kvm/vmx.c+5 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/9] perf support for x86 guest/host-only bits

This patch series consists of Joerg series named "perf support for amd guest/host-only bits v2" [1] rebased to 3.1.0-rc7 and in addition, support for intel cpus for the same functionality.

[1] https://lkml.org/lkml/2011/6/17/171

Changelog:
v1->v2
- move perf_guest_switch_msr array to perf code.
- small cosmetic changes.

Gleb Natapov (4):
perf, intel: Use GO/HO bits in perf-ctr
KVM, VMX: add support for switching of PERF_GLOBAL_CTRL KVM, VMX: Add support for guest/host-only profiling KVM, VMX: Check for automatic switch msr table overflow.

Joerg Roedel (5):
perf, core: Introduce attrs to count in either host or guest mode perf, amd: Use GO/HO bits in perf-ctr
perf, tools: Add support for guest/host-only profiling perf, tools: Fix copy&paste error in perf-kvm option description perf, tools: Do guest-only counting in perf-kvm by default

 arch/x86/include/asm/perf_event.h      |   15 ++++
 arch/x86/kernel/cpu/perf_event.c       |   14 ++++
 arch/x86/kernel/cpu/perf_event_amd.c   |   13 +++
 arch/x86/kernel/cpu/perf_event_intel.c |   90 +++++++++++++++++++++-
 arch/x86/kvm/vmx.c                     |  131 +++++++++++++++++++++++++++++---
 include/linux/perf_event.h             |    5 +-
 tools/perf/builtin-kvm.c               |    5 +-
 tools/perf/util/event.c                |    8 ++
 tools/perf/util/event.h                |    2 +
 tools/perf/util/evlist.c               |    5 +-
 tools/perf/util/parse-events.c         |   15 +++-
 11 files changed, 282 insertions(+), 21 deletions(-)
Signature · 1 line
1.7.5.3