Skip to content

Preparatory perf patches for KVM PMU support

Avi Kivity kvm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 35 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3perf: add context field to perf_eventarch/arm/kernel/ptrace.c arch/powerpc/kernel/ptrace.c arch/sh/kernel/ptrace_32.c +9 more+44 -2033 replies
2/3x86, perf: add constraints for architectural PMU v1arch/x86/kernel/cpu/perf_event_intel.c+18 -51 reply
3/3perf: export perf_event_refresh() to modulesinclude/linux/perf_event.h kernel/events/core.c+7 -11 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] Preparatory perf patches for KVM PMU support

The following three patches pave the way for KVM in-guest performance monitoring. One is a perf API improvement, another fixes the constraints for the version 1 architectural PMU (which we will emulate), and the third adds an export that KVM will use.

Please consider for merging; this will make further work on the KVM PMU easier.

Avi Kivity (3):
perf: add context field to perf_event
x86, perf: add constraints for architectural PMU v1
perf: export perf_event_refresh() to modules

 arch/arm/kernel/ptrace.c                |    3 ++-
 arch/powerpc/kernel/ptrace.c            |    2 +-
 arch/sh/kernel/ptrace_32.c              |    3 ++-
 arch/x86/kernel/cpu/perf_event_intel.c  |   23 ++++++++++++++++++-----
 arch/x86/kernel/kgdb.c                  |    2 +-
 arch/x86/kernel/ptrace.c                |    3 ++-
 drivers/oprofile/oprofile_perf.c        |    2 +-
 include/linux/hw_breakpoint.h           |   10 ++++++++--
 include/linux/perf_event.h              |    9 ++++++++-
 kernel/events/core.c                    |   24 +++++++++++++++++-------
 kernel/events/hw_breakpoint.c           |   10 +++++++---
 kernel/watchdog.c                       |    2 +-
 samples/hw_breakpoint/data_breakpoint.c |    2 +-
 13 files changed, 69 insertions(+), 26 deletions(-)
Signature · 1 line
1.7.5.3