From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.126; helo=mga18.intel.com; envelope-from=liming.gao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) (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 6D080210C1EE6 for ; Wed, 25 Jul 2018 07:07:27 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Jul 2018 07:07:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,401,1526367600"; d="scan'208";a="67434576" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by FMSMGA003.fm.intel.com with ESMTP; 25 Jul 2018 07:07:20 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 25 Jul 2018 07:07:19 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.81]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.57]) with mapi id 14.03.0319.002; Wed, 25 Jul 2018 22:07:17 +0800 From: "Gao, Liming" To: "Bi, Dandan" , "edk2-devel@lists.01.org" CC: "Zeng, Star" Thread-Topic: [edk2] [patch 1/2] MdeModulePkg/DxeLoadFunc: Add use case for new Perf macro Thread-Index: AQHUHyvuYI1b+Hv2dkOPMldZcWo3KqSgAzew Date: Wed, 25 Jul 2018 14:07:17 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E2C0D7B@SHSMSX104.ccr.corp.intel.com> References: <20180719064402.54872-1-dandan.bi@intel.com> In-Reply-To: <20180719064402.54872-1-dandan.bi@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiODYzYTNkZDYtMzQ1YS00Mjc3LTg1NTMtOGJkYjAxOWMzNjIxIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoidjk1Z1JYRVhrZk5ZbFlVT21VU2VsamxsUmY4WGRpRXRRVFNOdFwvd0FEZGVvYnIxTzQ0M2N4MVo1U0F3ZEZvVWEifQ== dlp-product: dlpe-windows dlp-version: 11.0.200.100 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [patch 1/2] MdeModulePkg/DxeLoadFunc: Add use case for new Perf macro 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: Wed, 25 Jul 2018 14:07:27 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Liming Gao > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Da= ndan Bi > Sent: Thursday, July 19, 2018 2:44 PM > To: edk2-devel@lists.01.org > Cc: Zeng, Star ; Gao, Liming > Subject: [edk2] [patch 1/2] MdeModulePkg/DxeLoadFunc: Add use case for ne= w Perf macro >=20 > Add an example case for the usage of > PERF_EVENT_SIGNAL_BEGIN/PERF_EVENT_SIGNAL_END >=20 > Cc: Liming Gao > Cc: Star Zeng > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Dandan Bi > --- > MdeModulePkg/Core/DxeIplPeim/DxeIpl.h | 3 ++- > MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf | 1 + > MdeModulePkg/Core/DxeIplPeim/Ia32/DxeLoadFunc.c | 4 ++++ > 3 files changed, 7 insertions(+), 1 deletion(-) >=20 > diff --git a/MdeModulePkg/Core/DxeIplPeim/DxeIpl.h b/MdeModulePkg/Core/Dx= eIplPeim/DxeIpl.h > index 6f8e13d213..9ea88a399b 100644 > --- a/MdeModulePkg/Core/DxeIplPeim/DxeIpl.h > +++ b/MdeModulePkg/Core/DxeIplPeim/DxeIpl.h > @@ -1,10 +1,10 @@ > /** @file > Master header file for DxeIpl PEIM. All source files in this module sh= ould > include this file for common definitions. >=20 > -Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.
> +Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
> This program and the accompanying materials > are licensed and made available under the terms and conditions of the BS= D License > which accompanies this distribution. The full text of the license may b= e found at > http://opensource.org/licenses/bsd-license.php >=20 > @@ -46,10 +46,11 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EI= THER EXPRESS OR IMPLIED. > #include > #include > #include > #include > #include > +#include >=20 > #define STACK_SIZE 0x20000 > #define BSP_STORE_SIZE 0x4000 >=20 >=20 > diff --git a/MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf b/MdeModulePkg/Core/= DxeIplPeim/DxeIpl.inf > index 7deeb8f270..302934283a 100644 > --- a/MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf > +++ b/MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf > @@ -77,10 +77,11 @@ > BaseLib > PeimEntryPoint > DebugLib > DebugAgentLib > PeiServicesTablePointerLib > + PerformanceLib >=20 > [LibraryClasses.ARM, LibraryClasses.AARCH64] > ArmMmuLib >=20 > [Ppis] > diff --git a/MdeModulePkg/Core/DxeIplPeim/Ia32/DxeLoadFunc.c b/MdeModuleP= kg/Core/DxeIplPeim/Ia32/DxeLoadFunc.c > index d5aa0474b0..8a939b6c24 100644 > --- a/MdeModulePkg/Core/DxeIplPeim/Ia32/DxeLoadFunc.c > +++ b/MdeModulePkg/Core/DxeIplPeim/Ia32/DxeLoadFunc.c > @@ -318,11 +318,13 @@ HandOffToDxeCore ( > PageTables =3D CreateIdentityMappingPageTables (BaseOfStack, STACK_S= IZE); >=20 > // > // End of PEI phase signal > // > + PERF_EVENT_SIGNAL_BEGIN (gEndOfPeiSignalPpi.Guid); > Status =3D PeiServicesInstallPpi (&gEndOfPeiSignalPpi); > + PERF_EVENT_SIGNAL_END (gEndOfPeiSignalPpi.Guid); > ASSERT_EFI_ERROR (Status); >=20 > AsmWriteCr3 (PageTables); >=20 > // > @@ -435,11 +437,13 @@ HandOffToDxeCore ( > } >=20 > // > // End of PEI phase signal > // > + PERF_EVENT_SIGNAL_BEGIN (gEndOfPeiSignalPpi.Guid); > Status =3D PeiServicesInstallPpi (&gEndOfPeiSignalPpi); > + PERF_EVENT_SIGNAL_END (gEndOfPeiSignalPpi.Guid); > ASSERT_EFI_ERROR (Status); >=20 > if (BuildPageTablesIa32Pae) { > AsmWriteCr3 (PageTables); > // > -- > 2.14.3.windows.1 >=20 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel