diff options
author | Srivatsa S. Bhat (VMware) <srivatsa@csail.mit.edu> | 2019-10-10 11:50:46 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-10-17 13:45:38 -0700 |
commit | 6271cbff9309b71a3c7a6411dd9bb96e1ccdc530 (patch) | |
tree | 7471e8038e7c3a90570b98feb8720c52d94f1d13 /drivers/char | |
parent | 3766c9d9c47c8545037db8c2ee911b3df51c830f (diff) | |
download | linux-stable-6271cbff9309b71a3c7a6411dd9bb96e1ccdc530.tar.gz linux-stable-6271cbff9309b71a3c7a6411dd9bb96e1ccdc530.tar.bz2 linux-stable-6271cbff9309b71a3c7a6411dd9bb96e1ccdc530.zip |
tracing/hwlat: Report total time spent in all NMIs during the sample
commit 98dc19c11470ee6048aba723d77079ad2cda8a52 upstream.
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@vger.kernel.org
Signed-off-by: Srivatsa S. Bhat (VMware) <srivatsa@csail.mit.edu>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/char')
0 files changed, 0 insertions, 0 deletions