tracing: Have hwlat ts be first instance and record count of instances
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 12 Feb 2020 17:21:03 +0000 (12:21 -0500)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 3 Mar 2020 22:33:43 +0000 (17:33 -0500)
commitb396bfdebffcc05a855137775e38f4652cbca454
treed46563923e44c99391b1066403a369e7b771ab00
parent98d54f81e36ba3bf92172791eba5ca5bd813989b
tracing: Have hwlat ts be first instance and record count of instances

The hwlat tracer runs a loop of width time during a given window. It then
reports the max latency over a given threshold and records a timestamp. But
this timestamp is the time after the width has finished, and not the time it
actually triggered.

Record the actual time when the latency was greater than the threshold as
well as the number of times it was greater in a given width per window.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Documentation/trace/ftrace.rst
kernel/trace/trace_entries.h
kernel/trace/trace_hwlat.c
kernel/trace/trace_output.c