>From a18df6cb088a07ce34fb1981ca3077f5e6925ae2 Mon Sep 17 00:00:00 2001 From: Feng (Eric) Liu <[EMAIL PROTECTED]> Date: Mon, 31 Mar 2008 10:35:59 -0400 Subject: [PATCH] kvm: Modify "Kbuild" for kvm trace and ensure "kvm_stat" work when kvm trace is enabled by userspace app.
Signed-off-by: Feng (Eric) Liu <[EMAIL PROTECTED]> --- kernel/Kbuild | 3 +++ kvm_stat | 3 +++ 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/kernel/Kbuild b/kernel/Kbuild index 014cc17..e3e97ab 100644 --- a/kernel/Kbuild +++ b/kernel/Kbuild @@ -2,6 +2,9 @@ EXTRA_CFLAGS := -I$(src)/include -include $(src)/external-module-compat.h obj-m := kvm.o kvm-intel.o kvm-amd.o kvm-objs := kvm_main.o x86.o mmu.o x86_emulate.o anon_inodes.o irq.o i8259.o \ lapic.o ioapic.o preempt.o i8254.o +ifeq ($(CONFIG_KVM_TRACE),y) +kvm-objs += kvm_trace.o +endif kvm-intel-objs := vmx.o vmx-debug.o kvm-amd-objs := svm.o diff --git a/kvm_stat b/kvm_stat index 07773b0..75910c2 100755 --- a/kvm_stat +++ b/kvm_stat @@ -2,12 +2,15 @@ import curses import sys, os, time, optparse +import string class Stats: def __init__(self): self.base = '/sys/kernel/debug/kvm' self.values = {} for key in os.listdir(self.base): + if key.startswith('trace'): + continue self.values[key] = None def get(self): for key, oldval in self.values.iteritems(): -- 1.5.1 --Eric (Liu, Feng)
0001-kvm-Modify-Kbuild-for-kvm-trace-and-ensure-kvm_s.patch
Description: 0001-kvm-Modify-Kbuild-for-kvm-trace-and-ensure-kvm_s.patch
------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel