summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/rcutorture/bin
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2018-01-31 10:12:27 +0300
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2018-02-21 03:22:01 +0300
commit0da8c08d71133ba0dd9f5b24ae0b6519e00275d6 (patch)
tree6e7d8332f9b7ed892a6f8a23cea81752654a03d8 /tools/testing/selftests/rcutorture/bin
parentcc839ce55d5c2d08bf25f9ddec6d9ee8854b87f4 (diff)
downloadlinux-0da8c08d71133ba0dd9f5b24ae0b6519e00275d6.tar.xz
torture: Grace periods do not piggyback off of themselves
The rcuperf trace-event processing counted every "done" trace event as a piggyback, which is incorrect because the task that started the grace period didn't piggyback at all. This commit fixes this problem by recording the task that started a given grace period and ignoring that task's "done" record for that grace period. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'tools/testing/selftests/rcutorture/bin')
-rwxr-xr-xtools/testing/selftests/rcutorture/bin/kvm-recheck-rcuperf-ftrace.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/kvm-recheck-rcuperf-ftrace.sh b/tools/testing/selftests/rcutorture/bin/kvm-recheck-rcuperf-ftrace.sh
index dffb553a7bcc..8948f7926b21 100755
--- a/tools/testing/selftests/rcutorture/bin/kvm-recheck-rcuperf-ftrace.sh
+++ b/tools/testing/selftests/rcutorture/bin/kvm-recheck-rcuperf-ftrace.sh
@@ -44,6 +44,7 @@ $8 == "start" {
starttask = $1;
starttime = $3;
startseq = $7;
+ seqtask[startseq] = starttask;
}
$8 == "end" {
@@ -62,7 +63,7 @@ $8 == "end" {
}
}
-$8 == "done" {
+$8 == "done" && seqtask[$7] != $1 {
piggybackcnt[$1]++;
}