diff options
| author | Peter Hilber <[email protected]> | 2023-12-18 08:38:39 +0100 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2024-02-19 12:18:51 +0100 |
| commit | 84dccadd3e2a3f1a373826ad71e5ced5e76b0c00 (patch) | |
| tree | e7e33f6eff8e90ac1227e3680c7ac1b128a0e4c9 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | c92a7eb6c642812fb08851e580973c3b83e0227c (diff) | |
timekeeping: Fix cross-timestamp interpolation on counter wrap
cycle_between() decides whether get_device_system_crosststamp() will
interpolate for older counter readings.
cycle_between() yields wrong results for a counter wrap-around where after
< before < test, and for the case after < test < before.
Fix the comparison logic.
Fixes: 2c756feb18d9 ("time: Add history to cross timestamp interface supporting slower devices")
Signed-off-by: Peter Hilber <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Acked-by: John Stultz <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions