From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 4569621D0A265 for ; Sun, 13 Aug 2017 23:56:48 -0700 (PDT) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Aug 2017 23:59:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,372,1498546800"; d="scan'208";a="1162339573" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga001.jf.intel.com with ESMTP; 13 Aug 2017 23:59:11 -0700 Received: from fmsmsx116.amr.corp.intel.com (10.18.116.20) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 13 Aug 2017 23:59:10 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx116.amr.corp.intel.com (10.18.116.20) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 13 Aug 2017 23:59:10 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.183]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.236]) with mapi id 14.03.0319.002; Mon, 14 Aug 2017 14:59:08 +0800 From: "Gao, Liming" To: "Zeng, Star" , "edk2-devel@lists.01.org" Thread-Topic: [PATCH 1/2] PerformancePkg DP: Init CustomCumulativeData.MinDur Thread-Index: AQHTEnzTQCAq3FwIJkC/YC0VZzzGdqKDcJgA Date: Mon, 14 Aug 2017 06:59:07 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14D77022C@shsmsx102.ccr.corp.intel.com> References: <1502440526-100840-1-git-send-email-star.zeng@intel.com> <1502440526-100840-2-git-send-email-star.zeng@intel.com> In-Reply-To: <1502440526-100840-2-git-send-email-star.zeng@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH 1/2] PerformancePkg DP: Init CustomCumulativeData.MinDur X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Aug 2017 06:56:48 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Liming Gao >-----Original Message----- >From: Zeng, Star >Sent: Friday, August 11, 2017 4:35 PM >To: edk2-devel@lists.01.org >Cc: Zeng, Star ; Gao, Liming ; >Cinnamon Shia >Subject: [PATCH 1/2] PerformancePkg DP: Init CustomCumulativeData.MinDur > >Init CustomCumulativeData.MinDur to PERF_MAXDUR, otherwise the >MinDur displayed for custom cumulative data will be always 0, >but not the real shortest duration. > >Cc: Liming Gao >Cc: Cinnamon Shia >Contributed-under: TianoCore Contribution Agreement 1.0 >Signed-off-by: Star Zeng >--- > PerformancePkg/Dp_App/Dp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/PerformancePkg/Dp_App/Dp.c b/PerformancePkg/Dp_App/Dp.c >index 4cdc39edb42e..484ef2d50b80 100644 >--- a/PerformancePkg/Dp_App/Dp.c >+++ b/PerformancePkg/Dp_App/Dp.c >@@ -382,7 +382,7 @@ InitializeDp ( > if (CustomCumulativeToken !=3D NULL) { > CustomCumulativeData =3D AllocateZeroPool (sizeof (PERF_CUM_DATA)); > ASSERT (CustomCumulativeData !=3D NULL); >- CustomCumulativeData->MinDur =3D 0; >+ CustomCumulativeData->MinDur =3D PERF_MAXDUR; > CustomCumulativeData->MaxDur =3D 0; > CustomCumulativeData->Count =3D 0; > CustomCumulativeData->Duration =3D 0; >-- >2.7.0.windows.1