OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tracing/hwlat: Don't ignore outer-loop duration when calculating max_latency
[tomoyo/tomoyo-test1.git]
/
kernel
/
trace
/
trace_hwlat.c
diff --git
a/kernel/trace/trace_hwlat.c
b/kernel/trace/trace_hwlat.c
index
a0251a7
..
862f4b0
100644
(file)
--- a/
kernel/trace/trace_hwlat.c
+++ b/
kernel/trace/trace_hwlat.c
@@
-256,6
+256,8
@@
static int get_sample(void)
/* Keep a running maximum ever recorded hardware latency */
if (sample > tr->max_latency)
tr->max_latency = sample;
+ if (outer_sample > tr->max_latency)
+ tr->max_latency = outer_sample;
}
out: