summaryrefslogtreecommitdiff
path: root/tools/perf
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2025-12-04 14:55:21 -0800
committerNamhyung Kim <namhyung@kernel.org>2025-12-23 10:13:50 -0800
commitb3d1dcd02c8cc1da723c1e9a6b74849ed94b6d30 (patch)
treec9878b34dac645c9784d0f199824cbbcefce52ef /tools/perf
parent5c5f6fe32df2edb4f72bdca62ec2b9f20b7c5ba4 (diff)
perf tests kvm: Avoid leaving perf.data.guest file around
Ensure the perf.data output when checking permissions is written to /dev/null so that it isn't left in the directory the test is run. Fixes: b58261584d2f ("perf test kvm: Add some basic perf kvm test coverage") Signed-off-by: Ian Rogers <irogers@google.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf')
-rwxr-xr-xtools/perf/tests/shell/kvm.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/tests/shell/kvm.sh b/tools/perf/tests/shell/kvm.sh
index 2fafde1a29cc..2a399b83fe80 100755
--- a/tools/perf/tests/shell/kvm.sh
+++ b/tools/perf/tests/shell/kvm.sh
@@ -118,7 +118,7 @@ setup_qemu() {
skip "/dev/kvm not accessible"
fi
- if ! perf kvm stat record -a sleep 0.01 >/dev/null 2>&1; then
+ if ! perf kvm stat record -o /dev/null -a sleep 0.01 >/dev/null 2>&1; then
skip "No permission to record kvm events"
fi