]> git.baikalelectronics.ru Git - kernel.git/commit
timers: Make flags output in the timer_start tracepoint useful
authorThomas Gleixner <tglx@linutronix.de>
Fri, 10 Feb 2017 15:41:15 +0000 (16:41 +0100)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 15 Feb 2017 14:02:24 +0000 (09:02 -0500)
commitcb3593c9c04f5c6bb56d9d4d964cc3ece37f21fe
tree39b701b37b8f050d2c54dcf73ccb797db3105dd0
parent922e2bb2843d2d5a0571f742608a9d059c3a839a
timers: Make flags output in the timer_start tracepoint useful

The timer flags in the timer_start trace event contain lots of useful
information, but the meaning is not clear in the trace output. Making tools
rely on the bit positions is bad as they might change over time.

Decode the flags in the print out. Tools can retrieve the bits and their
meaning from the trace format file.

Link: http://lkml.kernel.org/r/alpine.DEB.2.20.1702101639290.4036@nanos
Requested-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
include/linux/timer.h
include/trace/events/timer.h