]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
KVM: kvmtrace: replace get_cycles with ktime_get v3
authorChristian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
Mon, 14 Jul 2008 12:00:01 +0000 (14:00 +0200)
committerAvi Kivity <avi@qumranet.com>
Wed, 15 Oct 2008 08:15:15 +0000 (10:15 +0200)
commit3f7f95c65ef6a89472a28da1b9436eaeee288831
treed453af46dceb3fcce512a110573cd2e8e4341cfa
parente32c8f2c0720fb21c6f4a5f6ccbebdadc878f707
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>
include/linux/kvm.h
virt/kvm/kvm_trace.c