trace: Use 64-bit timekeeping
authorTina Ruchandani <ruchandani.tina@gmail.com>
Wed, 28 Jan 2015 14:16:11 +0000 (19:46 +0530)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 28 Jan 2015 16:02:05 +0000 (11:02 -0500)
commitda194930ede6d87945786f72b1c36c7a4ed0f3a6
tree2f80664ea7f783844220d78907bdc17701a69862
parent6ea22486ba46bcb665de36514094d74575cd1330
trace: Use 64-bit timekeeping

The ring_buffer_producer uses 'struct timeval' to measure
its start and end times. 'struct timeval' on 32-bit systems
will have its tv_sec value overflow in year 2038 and beyond.
This patch replaces struct timeval with 'ktime_t' which uses
64-bit representation for nanoseconds.

Link: http://lkml.kernel.org/r/20150128141611.GA2701@tinar
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Suggested-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Tina Ruchandani <ruchandani.tina@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ring_buffer_benchmark.c