Linux/linux 98dc19ckernel/trace trace_hwlat.c

tracing/hwlat: Report total time spent in all NMIs during the sample

nmi_total_ts is supposed to record the total time spent in *all* NMIs
that occur on the given CPU during the (active portion of the)
sampling window. However, the code seems to be overwriting this
variable for each NMI, thereby only recording the time spent in the
most recent NMI. Fix it by accumulating the duration instead.

Link: http://lkml.kernel.org/r/157073343544.17189.13911783866738671133.stgit@srivatsa-ubuntu

Fixes: 7b2c86250122 ("tracing: Add NMI tracing in hwlat detector")
Cc: stable at vger.kernel.org
Signed-off-by: Srivatsa S. Bhat (VMware) <srivatsa at csail.mit.edu>
Signed-off-by: Steven Rostedt (VMware) <rostedt at goodmis.org>
DeltaFile
+1-1kernel/trace/trace_hwlat.c
+1-11 files

UnifiedSplitRaw