[PATCH 3/3] perf kvm: Use evlist layer api when possible
From: Igor Lubashev
Date: Tue Oct 22 2019 - 21:56:58 EST
No need for layer violations when a proper evlist api is available.
Signed-off-by: Igor Lubashev <ilubashe@xxxxxxxxxx>
---
tools/perf/builtin-kvm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/perf/builtin-kvm.c b/tools/perf/builtin-kvm.c
index 5217aa3596c7..340927c2b243 100644
--- a/tools/perf/builtin-kvm.c
+++ b/tools/perf/builtin-kvm.c
@@ -1005,7 +1005,7 @@ static int kvm_events_live_report(struct perf_kvm_stat *kvm)
}
if (!rc && !done)
- err = fdarray__poll(fda, 100);
+ err = evlist__poll(kvm->evlist, 100);
}
evlist__disable(kvm->evlist);
--
2.7.4