aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/rcutorture/bin/kvm-recheck-rcuperf-ftrace.sh
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2018-01-30 23:12:27 -0800
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2018-02-20 16:22:01 -0800
commit0da8c08d71133ba0dd9f5b24ae0b6519e00275d6 (patch)
tree6e7d8332f9b7ed892a6f8a23cea81752654a03d8 /tools/testing/selftests/rcutorture/bin/kvm-recheck-rcuperf-ftrace.sh
parenttorture: Adjust rcuperf trace processing to allow for workqueues (diff)
downloadlinux-dev-0da8c08d71133ba0dd9f5b24ae0b6519e00275d6.tar.xz
linux-dev-0da8c08d71133ba0dd9f5b24ae0b6519e00275d6.zip
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 '')
-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]++;
}