1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-11 17:10:13 +00:00

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>
This commit is contained in:
Ian Rogers 2025-12-04 14:55:21 -08:00 committed by Namhyung Kim
parent 5c5f6fe32d
commit b3d1dcd02c

View File

@ -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