From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (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 A17C521D0A265 for ; Sun, 13 Aug 2017 23:56:52 -0700 (PDT) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP; 13 Aug 2017 23:59:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,372,1498546800"; d="scan'208";a="299766833" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga004.fm.intel.com with ESMTP; 13 Aug 2017 23:59:15 -0700 Received: from fmsmsx154.amr.corp.intel.com (10.18.116.70) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 13 Aug 2017 23:59:15 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX154.amr.corp.intel.com (10.18.116.70) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 13 Aug 2017 23:59:15 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.183]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.135]) with mapi id 14.03.0319.002; Mon, 14 Aug 2017 14:59:13 +0800 From: "Gao, Liming" To: "Zeng, Star" , "edk2-devel@lists.01.org" CC: "Ni, Ruiyu" , Cinnamon Shia Thread-Topic: [PATCH 2/2] ShellPkg UefiDpLib: Init CustomCumulativeData.MinDur Thread-Index: AQHTEnzSd6Rh2Mz4VkWLzWomXt+kWaKDcK0A Date: Mon, 14 Aug 2017 06:59:12 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14D770234@shsmsx102.ccr.corp.intel.com> References: <1502440526-100840-1-git-send-email-star.zeng@intel.com> <1502440526-100840-3-git-send-email-star.zeng@intel.com> In-Reply-To: <1502440526-100840-3-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 2/2] ShellPkg UefiDpLib: 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:52 -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 ; = Ni, >Ruiyu ; Cinnamon Shia >Subject: [PATCH 2/2] ShellPkg UefiDpLib: 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: Ruiyu Ni >Cc: Cinnamon Shia >Contributed-under: TianoCore Contribution Agreement 1.0 >Signed-off-by: Star Zeng >--- > ShellPkg/Library/UefiDpLib/Dp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/ShellPkg/Library/UefiDpLib/Dp.c b/ShellPkg/Library/UefiDpLib/= Dp.c >index 35ead751becc..94fa61c7108e 100644 >--- a/ShellPkg/Library/UefiDpLib/Dp.c >+++ b/ShellPkg/Library/UefiDpLib/Dp.c >@@ -250,7 +250,7 @@ ShellCommandRunDp ( > if (CustomCumulativeData =3D=3D NULL) { > return SHELL_OUT_OF_RESOURCES; > } >- 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