From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.115; helo=mga14.intel.com; envelope-from=jaben.carsey@intel.com; receiver=edk2-devel@lists.01.org Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (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 4E0802098C8DA for ; Thu, 19 Jul 2018 07:56:23 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Jul 2018 07:56:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,375,1526367600"; d="scan'208";a="68228156" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga003.jf.intel.com with ESMTP; 19 Jul 2018 07:56:23 -0700 Received: from fmsmsx125.amr.corp.intel.com (10.18.125.40) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 19 Jul 2018 07:56:22 -0700 Received: from fmsmsx103.amr.corp.intel.com ([169.254.2.106]) by FMSMSX125.amr.corp.intel.com ([169.254.2.205]) with mapi id 14.03.0319.002; Thu, 19 Jul 2018 07:56:22 -0700 From: "Carsey, Jaben" To: "Bi, Dandan" , "edk2-devel@lists.01.org" CC: "Gao, Liming" , "Ni, Ruiyu" Thread-Topic: [patch] ShellPkg/Dp: Cumulate the perf data of "DB:Stop" Thread-Index: AQHUHy9Z9kGKCbHqqk+56y8bG35ovqSWouZQ Date: Thu, 19 Jul 2018 14:56:21 +0000 Message-ID: References: <20180719070747.53368-1-dandan.bi@intel.com> In-Reply-To: <20180719070747.53368-1-dandan.bi@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZWRhYWE4Y2ItODRhZi00ZmM2LTk5MjAtZTUxYzM4MDc2ZGY2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiUFhNYnJtSUlndUJDSWhvZlRRMHhCSlkzUkRmMkh5clVOeVU4VUpUSnhuc2NLN0JtZjlBaFljc21CWFNod2wrUiJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.200.100 dlp-reaction: no-action x-originating-ip: [10.1.200.107] MIME-Version: 1.0 Subject: Re: [patch] ShellPkg/Dp: Cumulate the perf data of "DB:Stop" X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jul 2018 14:56:24 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Jaben Carsey > -----Original Message----- > From: Bi, Dandan > Sent: Thursday, July 19, 2018 12:08 AM > To: edk2-devel@lists.01.org > Cc: Gao, Liming ; Carsey, Jaben > ; Ni, Ruiyu > Subject: [patch] ShellPkg/Dp: Cumulate the perf data of "DB:Stop" > Importance: High >=20 > Currently DP tool will cumulate the performance data for > Driver Binding Support/Start, will count the number they > appears, and record the maximum/minimum time value... > Now add Driver Binding Stop performance data to the > cumulative data to keep consistency. >=20 > Cc: Liming Gao > Cc: Jaben Carsey > Cc: Ruiyu Ni > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Dandan Bi > --- > ShellPkg/DynamicCommand/DpDynamicCommand/Dp.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/ShellPkg/DynamicCommand/DpDynamicCommand/Dp.c > b/ShellPkg/DynamicCommand/DpDynamicCommand/Dp.c > index 213f6057c9..2c094b63c9 100644 > --- a/ShellPkg/DynamicCommand/DpDynamicCommand/Dp.c > +++ b/ShellPkg/DynamicCommand/DpDynamicCommand/Dp.c > @@ -71,11 +71,12 @@ UINTN mMeasurementNum =3D 0; > /// Items for which to gather cumulative statistics. > PERF_CUM_DATA CumData[] =3D { > PERF_INIT_CUM_DATA (LOAD_IMAGE_TOK), > PERF_INIT_CUM_DATA (START_IMAGE_TOK), > PERF_INIT_CUM_DATA (DRIVERBINDING_START_TOK), > - PERF_INIT_CUM_DATA (DRIVERBINDING_SUPPORT_TOK) > + PERF_INIT_CUM_DATA (DRIVERBINDING_SUPPORT_TOK), > + PERF_INIT_CUM_DATA (DRIVERBINDING_STOP_TOK) > }; >=20 > /// Number of items for which we are gathering cumulative statistics. > UINT32 const NumCum =3D sizeof(CumData) / sizeof(PERF_CUM_DATA); >=20 > -- > 2.14.3.windows.1