aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChristian Ehrhardt <ehrhardt@linux.vnet.ibm.com>2008-07-14 08:00:01 -0400
committerAvi Kivity <avi@qumranet.com>2008-10-15 04:15:15 -0400
commit3f7f95c65ef6a89472a28da1b9436eaeee288831 (patch)
treed453af46dceb3fcce512a110573cd2e8e4341cfa /include
parente32c8f2c0720fb21c6f4a5f6ccbebdadc878f707 (diff)
KVM: kvmtrace: replace get_cycles with ktime_get v3
The current kvmtrace code uses get_cycles() while the interpretation would be easier using using nanoseconds. ktime_get() should give at least the same accuracy as get_cycles on all architectures (even better on 32bit archs) but at a better unit (e.g. comparable between hosts with different frequencies. [avi: avoid ktime_t in public header] Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com> Acked-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/kvm.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/kvm.h b/include/linux/kvm.h
index 8a16b083df2e..5d08f11bb27f 100644
--- a/include/linux/kvm.h
+++ b/include/linux/kvm.h
@@ -322,12 +322,12 @@ struct kvm_trace_rec {
322 __u32 vcpu_id; 322 __u32 vcpu_id;
323 union { 323 union {
324 struct { 324 struct {
325 __u64 cycle_u64; 325 __u64 timestamp;
326 __u32 extra_u32[KVM_TRC_EXTRA_MAX]; 326 __u32 extra_u32[KVM_TRC_EXTRA_MAX];
327 } __attribute__((packed)) cycle; 327 } __attribute__((packed)) timestamp;
328 struct { 328 struct {
329 __u32 extra_u32[KVM_TRC_EXTRA_MAX]; 329 __u32 extra_u32[KVM_TRC_EXTRA_MAX];
330 } nocycle; 330 } notimestamp;
331 } u; 331 } u;
332}; 332};
333 333