From mboxrd@z Thu Jan 1 00:00:00 1970 From: ehrhardt@linux.vnet.ibm.com Subject: [PATCH 0/8] kvmtrace: powerpc support and timestamps for KVM_TRACE v3 Date: Mon, 14 Jul 2008 13:59:59 +0200 Message-ID: <1216036807-18277-1-git-send-email-ehrhardt@linux.vnet.ibm.com> Cc: hollisb@us.ibm.com, avi@qumranet.com, kvm-ppc@vger.kernel.org, ehrhardt@linux.vnet.ibm.com, borntraeger@de.ibm.com, sheng.yang@intel.com To: kvm@vger.kernel.org Return-path: Received: from mtagate5.de.ibm.com ([195.212.29.154]:59321 "EHLO mtagate5.de.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750939AbYGNMBN (ORCPT ); Mon, 14 Jul 2008 08:01:13 -0400 Sender: kvm-owner@vger.kernel.org List-ID: From: Christian Ehrhardt 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 Signed-off-by: Christian Ehrhardt --- [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(-)