]> git.baikalelectronics.ru Git - kernel.git/commit
trace: make trace_hwlat timestamp y2038 safe
authorDeepa Dinamani <deepa.kernel@gmail.com>
Mon, 8 May 2017 22:59:13 +0000 (15:59 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 9 May 2017 00:15:15 +0000 (17:15 -0700)
commitd61c43c1d441f06c45b2bb85944d15ce4b52234d
treeba6ec5bcb36a564a5679080ce7084b59f646caf9
parentfabc91826fcbf2b0edbda0b8c499152bda1b3d3e
trace: make trace_hwlat timestamp y2038 safe

struct timespec is not y2038 safe on 32 bit machines and needs to be
replaced by struct timespec64 in order to represent times beyond year
2038 on such machines.

Fix all the timestamp representation in struct trace_hwlat and all the
corresponding implementations.

Link: http://lkml.kernel.org/r/1491613030-11599-3-git-send-email-deepa.kernel@gmail.com
Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Cc: Ingo Molnar <mingo@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/trace/trace_entries.h
kernel/trace/trace_hwlat.c
kernel/trace/trace_output.c