aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py
diff options
context:
space:
mode:
authorBibo Mao <[email protected]>2023-07-31 10:24:05 +0800
committerSean Christopherson <[email protected]>2023-08-02 13:36:08 -0700
commitb859b018aadfd05f0526533fd1bcf04024d01917 (patch)
tree15f7d59a5dda43f79baa273573e93e0e5e38aaec /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py
parent0de704d2d6c82c7498fa1b8df66903f8139e3de2 (diff)
KVM: selftests: use unified time type for comparison
With test case kvm_page_table_test, start time is acquired with time type CLOCK_MONOTONIC_RAW, however end time in timespec_elapsed() is acquired with time type CLOCK_MONOTONIC. This can cause inaccurate elapsed time calculation due to mixing timebases, e.g. LoongArch in particular will see weirdness. Modify kvm_page_table_test to use unified time type CLOCK_MONOTONIC for start time. Signed-off-by: Bibo Mao <[email protected]> Reviewed-by: Oliver Upton <[email protected]> Link: https://lore.kernel.org/r/[email protected] [sean: massage changelog] Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions