lkml.org 
[lkml]   [2015]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] USB: usbmon: Use 64bit timestamp for mon_bin_hdr
On Mon, 4 May 2015, Tina Ruchandani wrote:

> > but the timestamp will also overflow. So what is the point?
> >
>
> The 32-bit timestamp obtained using do_gettimeofday() will overflow in
> year 2038. However, with 64-bit timestamps, we get practically
> infinite time. mon_bin_hdr already has support for a 64-bit seconds
> timestamp. This patch changes how it is populated.

Surely the real point was mentioned in the patch description:

> ... 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.

The point is to get rid of 32-bit timekeeping routines. Overflow and
the exact nature of the timestamps in usbmon are irrelevant.

Alan Stern



\
 
 \ /
  Last update: 2015-05-05 18:41    [W:0.071 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site