[igt-dev] [PATCH i-g-t v3 23/28] tools/i915-perf: record remaining perf data on exit
Umesh Nerlige Ramappa
umesh.nerlige.ramappa at intel.com
Fri Oct 28 19:52:53 UTC 2022
From: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa at intel.com>
---
tools/i915-perf/i915_perf_recorder.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tools/i915-perf/i915_perf_recorder.c b/tools/i915-perf/i915_perf_recorder.c
index f8f9b737..d16f1546 100644
--- a/tools/i915-perf/i915_perf_recorder.c
+++ b/tools/i915-perf/i915_perf_recorder.c
@@ -1144,6 +1144,11 @@ main(int argc, char *argv[])
fprintf(stdout, "Exiting...\n");
+ if (!write_i915_perf_data(ctx.output_stream, ctx.perf_fd)) {
+ fprintf(stderr, "Failed to write i915-perf data: %s\n",
+ strerror(errno));
+ }
+
if (!write_correlation_timestamps(ctx.output_stream, ctx.drm_fd)) {
fprintf(stderr,
"Failed to write final i915 timestamp correlation data: %s\n",
--
2.25.1
More information about the igt-dev
mailing list