Whamcloud - gitweb
LU-9019 obd: use 64-bit timestamps for rpc stats 10/25410/4
authorJames Simmons <uja.ornl@yahoo.com>
Fri, 17 Feb 2017 15:45:58 +0000 (10:45 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 1 Mar 2017 05:10:54 +0000 (05:10 +0000)
commitd6604b4a7d147602b4cab14e2353f860ba0f422e
tree14da6e5d1037a2802c4031739a8e9dc3fdd0adbb
parent824120da92fe8feb4b4308a136e33ec65fe3b635
LU-9019 obd: use 64-bit timestamps for rpc stats

The debugfs rpc stats interface contains timestamps that are
computed from timeval, which overflows in 2038 on 32-bit systems.

This changes the output to use a timespec64 type to avoid the
overflow. I also change the format to print the sub-second portion
as 9 digits (nanoseconds) for clarity, rather than printing six
digits without leading zeroes.

Change-Id: I8fca45ef62672f3880a444961cb068d8c436e2c7
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/25410
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Grégoire Pichon <gregoire.pichon@bull.net>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/obdclass/genops.c