aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/tests/shell/lib/stat_output.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/tests/shell/lib/stat_output.sh')
-rw-r--r--tools/perf/tests/shell/lib/stat_output.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/tests/shell/lib/stat_output.sh b/tools/perf/tests/shell/lib/stat_output.sh
index c81d6a9f7983d3..9a176ceae4a3c3 100644
--- a/tools/perf/tests/shell/lib/stat_output.sh
+++ b/tools/perf/tests/shell/lib/stat_output.sh
@@ -79,7 +79,7 @@ check_per_thread()
echo "[Skip] paranoid and not root"
return
fi
- perf stat --per-thread -a $2 true
+ perf stat --per-thread -p $$ $2 true
commachecker --per-thread
echo "[Success]"
}