[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] trace: Trace emulated RDTSC values



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1278674883 -3600
# Node ID e17e09abb349ca95cae88adb8841dda337077a3f
# Parent  bc83def0724d4fa3ecca07b593cacd804f5b0e4c
trace: Trace emulated RDTSC values

Signed-off-by: George Dunlap <george.dunlap@xxxxxxxxxxxxx>
---
 xen/arch/x86/hvm/hvm.c          |    2 ++
 xen/include/asm-x86/hvm/trace.h |    1 +
 xen/include/public/trace.h      |    1 +
 3 files changed, 4 insertions(+)

diff -r bc83def0724d -r e17e09abb349 xen/arch/x86/hvm/hvm.c
--- a/xen/arch/x86/hvm/hvm.c    Fri Jul 09 12:27:45 2010 +0100
+++ b/xen/arch/x86/hvm/hvm.c    Fri Jul 09 12:28:03 2010 +0100
@@ -2011,6 +2011,8 @@ void hvm_rdtsc_intercept(struct cpu_user
     tsc = hvm_get_guest_tsc(v);
     regs->eax = (uint32_t)tsc;
     regs->edx = (uint32_t)(tsc >> 32);
+
+    HVMTRACE_2D(RDTSC, regs->eax, regs->edx);
 }
 
 int hvm_msr_read_intercept(unsigned int msr, uint64_t *msr_content)
diff -r bc83def0724d -r e17e09abb349 xen/include/asm-x86/hvm/trace.h
--- a/xen/include/asm-x86/hvm/trace.h   Fri Jul 09 12:27:45 2010 +0100
+++ b/xen/include/asm-x86/hvm/trace.h   Fri Jul 09 12:28:03 2010 +0100
@@ -35,6 +35,7 @@
 #define DO_TRC_HVM_DR_WRITE    DEFAULT_HVM_REGACCESS
 #define DO_TRC_HVM_MSR_READ    DEFAULT_HVM_REGACCESS
 #define DO_TRC_HVM_MSR_WRITE   DEFAULT_HVM_REGACCESS
+#define DO_TRC_HVM_RDTSC       DEFAULT_HVM_REGACCESS
 #define DO_TRC_HVM_CPUID       DEFAULT_HVM_MISC
 #define DO_TRC_HVM_INTR        DEFAULT_HVM_INTR
 #define DO_TRC_HVM_NMI         DEFAULT_HVM_INTR
diff -r bc83def0724d -r e17e09abb349 xen/include/public/trace.h
--- a/xen/include/public/trace.h        Fri Jul 09 12:27:45 2010 +0100
+++ b/xen/include/public/trace.h        Fri Jul 09 12:28:03 2010 +0100
@@ -156,6 +156,7 @@
 #define TRC_HVM_CLTS            (TRC_HVM_HANDLER + 0x18)
 #define TRC_HVM_LMSW            (TRC_HVM_HANDLER + 0x19)
 #define TRC_HVM_LMSW64          (TRC_HVM_HANDLER + TRC_64_FLAG + 0x19)
+#define TRC_HVM_RDTSC           (TRC_HVM_HANDLER + 0x1a)
 #define TRC_HVM_INTR_WINDOW     (TRC_HVM_HANDLER + 0x20)
 #define TRC_HVM_NPF             (TRC_HVM_HANDLER + 0x21)
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.