From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.6 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DC09BC433E1 for ; Thu, 20 Aug 2020 21:45:27 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B7D2E20639 for ; Thu, 20 Aug 2020 21:45:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B7D2E20639 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3994A6E0C5; Thu, 20 Aug 2020 21:45:27 +0000 (UTC) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTPS id DF0B76E0C5; Thu, 20 Aug 2020 21:45:25 +0000 (UTC) IronPort-SDR: BXwkJmV4EIeuAf674nma4nUSU7iR3rrXb9p0Tr6+sdLx7Q93T01QU13BTsFGqjU0HGKQqkrDWO CIpPYIdNKdVw== X-IronPort-AV: E=McAfee;i="6000,8403,9719"; a="153021246" X-IronPort-AV: E=Sophos;i="5.76,334,1592895600"; d="scan'208";a="153021246" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Aug 2020 14:45:25 -0700 IronPort-SDR: iX1hmToPkFN4pYXAWZshaRbJNdR68CVFZZHh3iDagQPbHzX6YptLzI2oncHbPyVXowYaptstjB ev5NIB4dTOyQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,334,1592895600"; d="scan'208";a="278745313" Received: from aanderso-mobl3.amr.corp.intel.com (HELO [10.249.47.109]) ([10.249.47.109]) by fmsmga007.fm.intel.com with ESMTP; 20 Aug 2020 14:45:24 -0700 To: Chris Wilson , igt-dev@lists.freedesktop.org References: <20200820182640.65842-1-chris@chris-wilson.co.uk> From: Lionel Landwerlin Organization: Intel Corporation (UK) Ltd. - Co. Reg. #1134945 - Pipers Way, Swindon SN3 1RJ Message-ID: <5bdb17eb-4f92-ac67-5d89-de7b797663f8@intel.com> Date: Fri, 21 Aug 2020 00:45:23 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20200820182640.65842-1-chris@chris-wilson.co.uk> Content-Language: en-US Subject: Re: [Intel-gfx] [PATCH i-g-t 1/4] i915/perf: 32bit printf cleanup X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: intel-gfx@lists.freedesktop.org Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" On 20/08/2020 20:26, Chris Wilson wrote: > Use PRI[du]64 as necessary for 32bit builds. > > Signed-off-by: Chris Wilson Reviewed-by: Lionel Landwerlin Thanks! -Lionel > --- > tests/i915/perf.c | 8 ++++---- > tools/i915-perf/i915_perf_recorder.c | 2 +- > 2 files changed, 5 insertions(+), 5 deletions(-) > > diff --git a/tests/i915/perf.c b/tests/i915/perf.c > index 92edc9f1f..a894fd382 100644 > --- a/tests/i915/perf.c > +++ b/tests/i915/perf.c > @@ -2077,7 +2077,7 @@ test_blocking(uint64_t requested_oa_period, bool set_kernel_hrtimer, uint64_t ke > user_ns = (end_times.tms_utime - start_times.tms_utime) * tick_ns; > kernel_ns = (end_times.tms_stime - start_times.tms_stime) * tick_ns; > > - igt_debug("%d blocking reads during test with %lu Hz OA sampling (expect no more than %d)\n", > + igt_debug("%d blocking reads during test with %"PRIu64" Hz OA sampling (expect no more than %d)\n", > n, NSEC_PER_SEC / oa_period, max_iterations); > igt_debug("%d extra iterations seen, not related to periodic sampling (e.g. context switches)\n", > n_extra_iterations); > @@ -2265,7 +2265,7 @@ test_polling(uint64_t requested_oa_period, bool set_kernel_hrtimer, uint64_t ker > user_ns = (end_times.tms_utime - start_times.tms_utime) * tick_ns; > kernel_ns = (end_times.tms_stime - start_times.tms_stime) * tick_ns; > > - igt_debug("%d non-blocking reads during test with %lu Hz OA sampling (expect no more than %d)\n", > + igt_debug("%d non-blocking reads during test with %"PRIu64" Hz OA sampling (expect no more than %d)\n", > n, NSEC_PER_SEC / oa_period, max_iterations); > igt_debug("%d extra iterations seen, not related to periodic sampling (e.g. context switches)\n", > n_extra_iterations); > @@ -2357,7 +2357,7 @@ num_valid_reports_captured(struct drm_i915_perf_open_param *param, > int64_t start, end; > int num_reports = 0; > > - igt_debug("Expected duration = %lu\n", *duration_ns); > + igt_debug("Expected duration = %"PRId64"\n", *duration_ns); > > stream_fd = __perf_open(drm_fd, param, true); > > @@ -2389,7 +2389,7 @@ num_valid_reports_captured(struct drm_i915_perf_open_param *param, > > *duration_ns = end - start; > > - igt_debug("Actual duration = %lu\n", *duration_ns); > + igt_debug("Actual duration = %"PRIu64"\n", *duration_ns); > > return num_reports; > } > diff --git a/tools/i915-perf/i915_perf_recorder.c b/tools/i915-perf/i915_perf_recorder.c > index 7671f39b4..adc41c29f 100644 > --- a/tools/i915-perf/i915_perf_recorder.c > +++ b/tools/i915-perf/i915_perf_recorder.c > @@ -1001,7 +1001,7 @@ main(int argc, char *argv[]) > } > > ctx.oa_exponent = oa_exponent_for_period(ctx.timestamp_frequency, perf_period); > - fprintf(stdout, "Opening perf stream with metric_id=%lu oa_exponent=%u\n", > + fprintf(stdout, "Opening perf stream with metric_id=%"PRIu64" oa_exponent=%u\n", > ctx.metric_set->perf_oa_metrics_set, ctx.oa_exponent); > > ctx.perf_fd = perf_open(&ctx); _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx