From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by gabe.freedesktop.org (Postfix) with ESMTPS id 552A910E2AF for ; Tue, 25 Oct 2022 20:07:19 +0000 (UTC) From: Umesh Nerlige Ramappa To: igt-dev@lists.freedesktop.org Date: Tue, 25 Oct 2022 20:07:04 +0000 Message-Id: <20221025200709.83314-25-umesh.nerlige.ramappa@intel.com> In-Reply-To: <20221025200709.83314-1-umesh.nerlige.ramappa@intel.com> References: <20221025200709.83314-1-umesh.nerlige.ramappa@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH 24/29] tools/i915-perf: record remaining perf data on exit List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: From: Lionel Landwerlin Signed-off-by: Lionel Landwerlin Reviewed-by: Umesh Nerlige Ramappa --- 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