Skip to content

kvmtrace: powerpc support and timestamps for KVM_TRACE v3

[email protected] kvm kvm-ppc 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8kvmtrace: Remove use of bit fields in kvm trace structure v3include/linux/kvm.h virt/kvm/kvm_trace.c+24 -120 replies
2/8kvmtrace: replace get_cycles with ktime_get v3include/linux/kvm.h virt/kvm/kvm_trace.c+12 -120 replies
3/8kvmppc: kvmtrace: enable KVM_TRACE building for powerpcarch/powerpc/kvm/Kconfig arch/powerpc/kvm/Makefile+15 -20 replies
4/8kvmppc: kvmtrace: adds trace points for ppc tlb activity v2arch/powerpc/kvm/44x_tlb.c arch/powerpc/kvm/emulate.c include/linux/kvm.h+21 -10 replies
5/8kvmppc: kvmtrace: trace powerpc instruction emulationarch/powerpc/kvm/emulate.c include/linux/kvm.h+3 -00 replies
6/8kvm-userspace: kvmtrace_format: add ppc instruction emulationuser/formats user/kvmtrace_format+268 -240 replies
7/8kvm-userspace: kvmtrace_format: add statistic sectionuser/kvmtrace_format+67 -60 replies
8/8kvm-userspace: kvmtrace: cycles are now ktime_t timestampsuser/formats user/kvmtrace_format+42 -490 replies

Reviews trailers per patch

1 of 8 patches has a Reviewed-by or Acked-by.

PatchChristian Borntraeger
1/8
2/8A-b
3/8
4/8
5/8
6/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/8] kvmtrace: powerpc support and timestamps for KVM_TRACE v3

From: Christian Ehrhardt <[email protected]>

Changing kvmtrace code to use timestamps and add powerpc support.

This is the revised series including the feedback from the earlier submission last week. I now also added the userspace changes which complete the series.

Updated in v3:
patch 2/8 now uses ktime_get() for all architectures as discussed

The series contains eight patches (3 generic / 5 powerpc code):

Subject: [PATCH 1/8] kvmtrace: Remove use of bit fields in kvm trace structure v3
Introducing a endian save way to store the flags event,tcs, num_data
Subject: [PATCH 2/8] kvmtrace: replace get_cycles with getnstimeofday
use a new timestamp source (ktime_get) which makes it 32/64 bit save, comparable and does not need an arch hook
Subject: [PATCH 3/8] kvmppc: kvmtrace: enable KVM_TRACE building for powerpc
enable KVM_TRACE for powerpc in Kconfig/Makefile
Subject: [PATCH 4/8] kvmppc: kvmtrace: adds trace points for ppc tlb activity v2
use KVM_TRACE to track tlb/shadow tlb activity on embedded powerpc
Subject: [PATCH 5/8] kvmppc: kvmtrace: trace powerpc instruction emulation
use KVM_TRACE to track instruction emulation overhead
Subject: [PATCH 6/8] kvm-userspace: kvmtrace_format: add ppc instruction emulation
extension to kvmtrace_format to handle complex event types e.g. ppc instructon emulation
Subject: [PATCH 7/8] kvm-userspace: kvmtrace_format: add statistic section
adding statistic creation/prsentation to the kvmtrace data processing
Subject: [PATCH 8/8] kvm-userspace: kvmtrace: rename cycles to timestamp
it is no more tracking cycles, so rename variables and change comments

---

[diffstat]

 arch/powerpc/kvm/emulate.c   |    2
 b/arch/powerpc/kvm/44x_tlb.c |   15 ++
 b/arch/powerpc/kvm/Kconfig   |   11 +
 b/arch/powerpc/kvm/Makefile  |    6
 b/arch/powerpc/kvm/emulate.c |    4
 b/include/linux/kvm.h        |   17 ++
 b/user/formats               |   16 --
 b/user/kvmtrace_format       |  276 ++++++++++++++++++++++++++++++++++++++++---
 b/virt/kvm/kvm_trace.c       |   19 +-
 include/linux/kvm.h          |   10 +
 user/formats                 |   50 +++----
 user/kvmtrace_format         |  114 +++++++++++++----
 virt/kvm/kvm_trace.c         |   18 +-
 13 files changed, 452 insertions(+), 106 deletions(-)