aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
diff options
context:
space:
mode:
authorTina Ruchandani <[email protected]>2015-10-29 22:58:28 -0700
committerGreg Kroah-Hartman <[email protected]>2015-12-01 14:48:26 -0800
commitec4dca8bdfb650fd698401e26f586683ec69a942 (patch)
tree158e76c2ad48e109e6ba717796582d1975b0c9e2 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
parent9faae5a37b266afca6914163316856c5ed4ec366 (diff)
USB: usbmon: Remove timeval usage for timestamp
struct timeval' uses 32-bits for its seconds field and will overflow in the year 2038 and beyond. This patch replaces the usage of 'struct timeval' in mon_get_timestamp() with timespec64 which uses a 64-bit seconds field and is y2038-safe. mon_get_timestamp() truncates the timestamp at 4096 seconds, so the correctness of the code is not affected. This patch is part of a larger attempt to remove instances of struct timeval and other 32-bit timekeeping (time_t, struct timespec) from the kernel. Signed-off-by: Tina Ruchandani <[email protected]> Suggested-by: Arnd Bergmann <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions