kvmtrace: powerpc support and timestamps for KVM_TRACE v3
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest8 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | kvmtrace: Remove use of bit fields in kvm trace structure v3include/ virt/ | +24 | 0 replies | |
| 2/8 | kvmtrace: replace get_cycles with ktime_get v3include/ virt/ | +12 | 0 replies | |
| 3/8 | kvmppc: kvmtrace: enable KVM_TRACE building for powerpcarch/ arch/ | +15 | 0 replies | |
| 4/8 | kvmppc: kvmtrace: adds trace points for ppc tlb activity v2arch/ arch/ include/ | +21 | 0 replies | |
| 5/8 | kvmppc: kvmtrace: trace powerpc instruction emulationarch/ include/ | +3 | 0 replies | |
| 6/8 | kvm-userspace: kvmtrace_format: add ppc instruction emulationuser/ user/ | +268 | 0 replies | |
| 7/8 | kvm-userspace: kvmtrace_format: add statistic sectionuser/ | +67 | 0 replies | |
| 8/8 | kvm-userspace: kvmtrace: cycles are now ktime_t timestampsuser/ user/ | +42 | 0 replies |
Reviews trailers per patch
1 of 8 patches has a Reviewed-by or Acked-by.
| Patch | Christian Borntraeger |
|---|---|
| 1/8 | |
| 2/8 | A-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.
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(-)