提交 cc839ce5 编写于 作者: P Paul E. McKenney

torture: Adjust rcuperf trace processing to allow for workqueues

The rcuperf event-trace processing assumes that expedited grace periods
start and end on the same task, an assumption that was violated by moving
expedited grace-period processing to workqueues.  This commit removes
this now-fallacious assumption from rcuperf's event-trace processing.
Signed-off-by: NPaul E. McKenney <paulmck@linux.vnet.ibm.com>
上级 adcfe76c
...@@ -39,7 +39,7 @@ sed -e 's/us : / : /' | ...@@ -39,7 +39,7 @@ sed -e 's/us : / : /' |
tr -d '\015' | tr -d '\015' |
awk ' awk '
$8 == "start" { $8 == "start" {
if (starttask != "") if (startseq != "")
nlost++; nlost++;
starttask = $1; starttask = $1;
starttime = $3; starttime = $3;
...@@ -47,17 +47,17 @@ $8 == "start" { ...@@ -47,17 +47,17 @@ $8 == "start" {
} }
$8 == "end" { $8 == "end" {
if (starttask == $1 && startseq == $7) { if (startseq == $7) {
curgpdur = $3 - starttime; curgpdur = $3 - starttime;
gptimes[++n] = curgpdur; gptimes[++n] = curgpdur;
gptaskcnt[starttask]++; gptaskcnt[starttask]++;
sum += curgpdur; sum += curgpdur;
if (curgpdur > 1000) if (curgpdur > 1000)
print "Long GP " starttime "us to " $3 "us (" curgpdur "us)"; print "Long GP " starttime "us to " $3 "us (" curgpdur "us)";
starttask = ""; startseq = "";
} else { } else {
# Lost a message or some such, reset. # Lost a message or some such, reset.
starttask = ""; startseq = "";
nlost++; nlost++;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册