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@tinarSuggested-by: NArnd Bergmann <arnd@arndb.de> Suggested-by: NSteven Rostedt <rostedt@goodmis.org> Signed-off-by: NTina Ruchandani <ruchandani.tina@gmail.com> Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
Showing
想要评论请 注册 或 登录