diff --git a/tools/perf/builtin-kvm.c b/tools/perf/builtin-kvm.c index d9cc0e3f284f071f3a1a6d88ef06a632415433e7..c2e5d56a291dcf3d8bdb140cfffbb42d6c5ab6f6 100644 --- a/tools/perf/builtin-kvm.c +++ b/tools/perf/builtin-kvm.c @@ -1232,7 +1232,7 @@ static int read_events(struct perf_kvm_stat *kvm) .ordered_samples = true, }; struct perf_data_file file = { - .path = input_name, + .path = kvm->file_name, .mode = PERF_DATA_MODE_READ, };