From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from g4t3427.houston.hpe.com (g4t3427.houston.hpe.com [15.241.140.73]) (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 5605A21D18238 for ; Mon, 14 Aug 2017 09:13:34 -0700 (PDT) Received: from G2W6311.americas.hpqcorp.net (g2w6311.austin.hp.com [16.197.64.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g4t3427.houston.hpe.com (Postfix) with ESMTPS id 9767AB7 for ; Mon, 14 Aug 2017 16:15:57 +0000 (UTC) Received: from G4W9326.americas.hpqcorp.net (16.208.32.96) by G2W6311.americas.hpqcorp.net (16.197.64.53) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Mon, 14 Aug 2017 16:15:07 +0000 Received: from G2W6311.americas.hpqcorp.net (16.197.64.53) by G4W9326.americas.hpqcorp.net (16.208.32.96) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Mon, 14 Aug 2017 16:15:06 +0000 Received: from NAM02-CY1-obe.outbound.protection.outlook.com (15.241.52.12) by G2W6311.americas.hpqcorp.net (16.197.64.53) with Microsoft SMTP Server (TLS) id 15.0.1178.4 via Frontend Transport; Mon, 14 Aug 2017 16:15:06 +0000 Received: from CS1PR84MB0119.NAMPRD84.PROD.OUTLOOK.COM (10.162.189.22) by CS1PR84MB0118.NAMPRD84.PROD.OUTLOOK.COM (10.162.189.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1341.21; Mon, 14 Aug 2017 16:14:43 +0000 Received: from CS1PR84MB0119.NAMPRD84.PROD.OUTLOOK.COM ([10.162.189.22]) by CS1PR84MB0119.NAMPRD84.PROD.OUTLOOK.COM ([10.162.189.22]) with mapi id 15.01.1341.020; Mon, 14 Aug 2017 16:14:43 +0000 From: "Shia, Cinnamon" To: "Gao, Liming" , "Zeng, Star" , "edk2-devel@lists.01.org" CC: "Ni, Ruiyu" Thread-Topic: [PATCH 2/2] ShellPkg UefiDpLib: Init CustomCumulativeData.MinDur Thread-Index: AQHTEnzbqCDdqhCqlESJJKABPvyn0KKDcLEAgACbF7A= Date: Mon, 14 Aug 2017 16:14:43 +0000 Message-ID: References: <1502440526-100840-1-git-send-email-star.zeng@intel.com> <1502440526-100840-3-git-send-email-star.zeng@intel.com> <4A89E2EF3DFEDB4C8BFDE51014F606A14D770234@shsmsx102.ccr.corp.intel.com> In-Reply-To: <4A89E2EF3DFEDB4C8BFDE51014F606A14D770234@shsmsx102.ccr.corp.intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=cinnamon.shia@hpe.com; x-originating-ip: [124.155.180.249] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; CS1PR84MB0118; 6:2lD9mIvCs3yQe/l6jPE5Isb6I05UnuMjOvdeGv33Ep/ie0K9sNkZXggn8/SF9DdlozImxouPq37BR8/uOiCHyRvz67vMd6H9oNejlfjagHkQrawpqNz5pkrMRZdCLyWtdAkjXlKG/hfgnpXCVmTEa3Jvm3HVdF35aCd14KeKeNkf/lA2IDKkeU3HjG7BSr2q/d5bsVRhgNU6RDym0jh73SvKZulNPTKtoYYG2Zd0NbH77nSO3MtezXAoo9qHWg+sRyAO8W8a336OpWEkwvnRg4/vPFyGSuxseLdQe84axjXx1aB5udaW+mw2ZHWoWFsiB8EirqXTVWeQW2Ni2R4cyw==; 5:yODs1ww4GU8bKxl3AwMJ3m+IRlACKntg76xaRtyAtqWUADftFFzPQ7nwjmxkeNYCjUqJLF7KJLvLjvSskI2dhBLtRyZVsm1rVHdW8ErLHxq0W2NRZcPEa8tJZLmKFAuBSSpzLhOF9iopVo8D7MhSHg==; 24:dHniAOwRr+e61RTcg3YTOMy+3FN9quP7YYJnxFgznHn9PCa6EuUeXefPh+nltpEIdsbc6YmO+oEn5yx0G+/4IkpXQsVW3DB+wGlx5X2G6RY=; 7:N56bvJ64XPehyzzLTxu22w13lxH+FAdhA+wa6QPTIJHFRUxLn4JY4GsJKwihuuYH1iSF8ltgpUlqjGPkHFwNsv1cW+DnYTjfUH7ef/IkVMZY1GuRzgtDdDobof+LAUWe1kudJaN5wqR60WHxXiCCpdK+ROLjowrjTZ9FL88wPCYFn1+7GUFghfp5UxPn2qg4uCD1Z6eKZEDLtIi7PvlsKclLuo1uqDKcJmtg9d6g/Rs= x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: 6bab2e41-392c-42c1-e421-08d4e32f9301 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254152)(48565401081)(300000503095)(300135400095)(2017052603031)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:CS1PR84MB0118; x-ms-traffictypediagnostic: CS1PR84MB0118: x-exchange-antispam-report-test: UriScan:(227479698468861)(162533806227266)(228905959029699); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(6055026)(6041248)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123564025)(20161123558100)(20161123555025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CS1PR84MB0118; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CS1PR84MB0118; x-forefront-prvs: 039975700A x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6029001)(6009001)(39860400002)(377454003)(189002)(199003)(13464003)(4326008)(5660300001)(81166006)(81156014)(102836003)(6116002)(3846002)(8676002)(8936002)(6246003)(14454004)(33656002)(2900100001)(7736002)(305945005)(7696004)(55016002)(53936002)(9686003)(53546010)(66066001)(50986999)(77096006)(3660700001)(2501003)(2950100002)(3280700002)(68736007)(6506006)(6436002)(105586002)(478600001)(97736004)(106356001)(229853002)(101416001)(2906002)(74316002)(25786009)(189998001)(76176999)(54356999)(86362001); DIR:OUT; SFP:1102; SCL:1; SRVR:CS1PR84MB0118; H:CS1PR84MB0119.NAMPRD84.PROD.OUTLOOK.COM; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: hpe.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Aug 2017 16:14:43.5112 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-Transport-CrossTenantHeadersStamped: CS1PR84MB0118 X-OriginatorOrg: hpe.com 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 16:13:34 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Cinnamon Shia -----Original Message----- From: Gao, Liming [mailto:liming.gao@intel.com]=20 Sent: Monday, August 14, 2017 2:59 PM To: Zeng, Star ; edk2-devel@lists.01.org Cc: Ni, Ruiyu ; Shia, Cinnamon Subject: RE: [PATCH 2/2] ShellPkg UefiDpLib: Init CustomCumulativeData.MinD= ur 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=20 >; Ni, Ruiyu ; Cinnamon Shia=20 > >Subject: [PATCH 2/2] ShellPkg UefiDpLib: Init=20 >CustomCumulativeData.MinDur > >Init CustomCumulativeData.MinDur to PERF_MAXDUR, otherwise the MinDur=20 >displayed for custom cumulative data will be always 0, but not the real=20 >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=20 >b/ShellPkg/Library/UefiDpLib/Dp.c index 35ead751becc..94fa61c7108e=20 >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