From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from g2t2354.austin.hpe.com (g2t2354.austin.hpe.com [15.233.44.27]) (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 6232A21D18258 for ; Mon, 14 Aug 2017 09:12:09 -0700 (PDT) Received: from G4W9122.americas.hpqcorp.net (g4w9122.houston.hp.com [16.210.21.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g2t2354.austin.hpe.com (Postfix) with ESMTPS id 7A72F98 for ; Mon, 14 Aug 2017 16:14:32 +0000 (UTC) Received: from G1W8107.americas.hpqcorp.net (2002:10c1:483b::10c1:483b) by G4W9122.americas.hpqcorp.net (2002:10d2:1511::10d2:1511) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Mon, 14 Aug 2017 16:14:29 +0000 Received: from NAM02-CY1-obe.outbound.protection.outlook.com (15.241.52.11) by G1W8107.americas.hpqcorp.net (16.193.72.59) with Microsoft SMTP Server (TLS) id 15.0.1178.4 via Frontend Transport; Mon, 14 Aug 2017 16:14:29 +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:28 +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:28 +0000 From: "Shia, Cinnamon" To: "Gao, Liming" , "Zeng, Star" , "edk2-devel@lists.01.org" Thread-Topic: [PATCH 1/2] PerformancePkg DP: Init CustomCumulativeData.MinDur Thread-Index: AQHTEnzVahAoCtOo2kW/00ZSgVDKaKKDcKuAgACa50A= Date: Mon, 14 Aug 2017 16:14:28 +0000 Message-ID: References: <1502440526-100840-1-git-send-email-star.zeng@intel.com> <1502440526-100840-2-git-send-email-star.zeng@intel.com> <4A89E2EF3DFEDB4C8BFDE51014F606A14D77022C@shsmsx102.ccr.corp.intel.com> In-Reply-To: <4A89E2EF3DFEDB4C8BFDE51014F606A14D77022C@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:j6dY20ShUn0leMiaJ+TD1fYEgxkG3B3aPodBn41voagZRxHdEkippsGLOPcDKzMuHVya/5ShEi6uThjGI+Cv5xDQJm8GZPaBUcW8q3fo07RdB5kQgVpZmRd9DyXELduEY2ZQxntvzkbYc3DbOErN7f+9VLEZbuVml2ufP2Q2QziHpH9MsKzaSEHpYZzRzWuip3kBFvleud4Dwdr9xnGmXeLjgFadVLwiYTe/5sXjxR3IBvG5McpPOta9LVTVfct0cy44b9ofdZ0yBKXJPxMU1JY1OJvPH8u+eDDAdWzF6KGpkedgh2AOZOkG0GnzqtuJWdWe+O9so4aZJ5punpMzdA==; 5:NlVq4UAwSBU7bdUaUm4XN3KrGWDas0iMAmDRqbLMJX9sDrec0kGFJekdXo6POGNXLOkdM05h3jeLfLNIYhJPk88J80v06sZ63djROXfNB3LkFUtaJm191S9V7owBohQ7XpLzWboKckU5ei6FeWt1uA==; 24:XnGNNtil43tkB9jQi2e/i668ocH0krjACP+OnOUkSDs6dEbaTaw09CMl9TsBZ96MUJKSTUVpNqTbf1ZVxPJtCBpiYw1xYTMMgMHnCMQm2g0=; 7:ScpjUhncKLVkprI5a47if86Teu2/YRAvsQy8AqAl0Zniz3y8cIt3afHUgkNQtw271nT4VjUGRjMoQ1COwT3D3Edff1xXaw9qNiFMtfIqeQMvrUIAwOJ741pxI8G6UzD/js0RRPWur/LJBuvym2VqB8RfiC/Ofr9r6xOD2NIEMZ3yiZ+/HAcDQ+xFyZjegjTMvPrgNvCI05XSwwhx2y5JWuo2j32BJrInirSfy389kLo= x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: d966ad5f-caf4-4247-b294-08d4e32f89e3 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)(6009001)(39860400002)(377454003)(189002)(199003)(13464003)(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:28.1670 (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 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 16:12:09 -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: Shia, Cinnamon Subject: RE: [PATCH 1/2] PerformancePkg DP: Init CustomCumulativeData.MinDu= r 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 >; Cinnamon Shia >Subject: [PATCH 1/2] PerformancePkg DP: 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: 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=20 >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