From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mx.groups.io with SMTP id smtpd.web10.15055.1686321472038290614 for ; Fri, 09 Jun 2023 07:37:52 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=TpBckpfg; spf=pass (domain: intel.com, ip: 134.134.136.126, mailfrom: jiaxin.wu@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686321472; x=1717857472; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=m5XJ7UOQrZK83WDxUqb9x4mEAYs7Q7K1VJ7qriVi1x0=; b=TpBckpfg3Bhhdgyhf/lPaJzstZh3Xen+qxYhUhFqooDEZ4t0zf7E+kF8 0AAD0lPs0EN70/BnLtZUE+S5XMwnRFC9Uwuh6cDR+tw41UysriLsR6qcy hCr+Uvl5VwG7M60Lp7V6g46jj11sFQSRpSFks3iTE2SRKGZM3pCtexC7+ zx3iS85R1sIpSIDjgba66GEM3pcr/jCpXdye1GYwCeEvtpv9l+XYQqlHT IKRK+9KooaFSJ7PAKsJVQFllE+i72kelVLsivbtxLKvQR6ASCViWSW4di g1d4wZx+4qLnggiKp9JcDc6vTpJC0RQMk/BiPTa7dzSmTObDdhiGRjVsy g==; X-IronPort-AV: E=McAfee;i="6600,9927,10736"; a="342286863" X-IronPort-AV: E=Sophos;i="6.00,229,1681196400"; d="scan'208";a="342286863" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jun 2023 07:37:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10736"; a="704569086" X-IronPort-AV: E=Sophos;i="6.00,229,1681196400"; d="scan'208";a="704569086" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by orsmga007.jf.intel.com with ESMTP; 09 Jun 2023 07:37:51 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Fri, 9 Jun 2023 07:37:51 -0700 Received: from orsmsx603.amr.corp.intel.com (10.22.229.16) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Fri, 9 Jun 2023 07:37:50 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23 via Frontend Transport; Fri, 9 Jun 2023 07:37:50 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.103) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Fri, 9 Jun 2023 07:37:50 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZilrNfZ9dEQk6QRFLUng6kpXNOQmvQXCrCSV9FZh2rVVn2fIWxiiZVMWsubYRVmfuv8457cQLnKpGZbtuxk+OwhC1s1zj+JO4lEmYnc8aL3iO0Lz7wpsWiwPW/b4jB2zmzGcestnr3n6yBmbsgbWa0juDpesXsV/aI8rS3zF1MF0KDSqeDQL61KESrnzKFPGnEHOYtWJk8SjaMB4MxbKyFad0GSiOQuueunVDiXGPHCiiF2NqhE9mLBzldkVBib+gfma1Ir26r+rjRR4Og63bcyGEvjazXRbKp/Xkz3NuW9YT2i5oEyfTZrk45kPHhDSN9O+WPbkHkpE+A4lXa0bBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=kcLnTT5mRQrp+VfCp//Z1Twponx60gSlAXHKq8xeqyI=; b=IOb4FwnIuWo4n3mid7FJc/t54nmnPu66y2Cs/IVX9EsvtuihSiEiUCCs9/kekND89RQcM/0IDzoa+UeqpRCYuxArcQt5OV1lDFX9i0aI7Am++CfcMRbuV1oX1Uo//LBbP41xK0NfIlip9tyS3pwTaJzt1r5oyDsCzLZjZRsXAkBeuGEQOfyyon0ip5PtSIoW29KzyUM/R3J/nI1c1fC4tLmdIjPJowZkqxpHvZHvvqpI3zfRh/MXKlBHCw8nOUVaiHZEllsm3ou3pE3oEJNFTZ5zV2q1YnpV0VKso89jk8RFBE0nE0pTVBEvZS2yRq5GuJD5ozoS8AQfEmLooQsRGQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from MN0PR11MB6158.namprd11.prod.outlook.com (2603:10b6:208:3ca::18) by MN0PR11MB6033.namprd11.prod.outlook.com (2603:10b6:208:374::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.38; Fri, 9 Jun 2023 14:37:49 +0000 Received: from MN0PR11MB6158.namprd11.prod.outlook.com ([fe80::a50f:27de:660a:544d]) by MN0PR11MB6158.namprd11.prod.outlook.com ([fe80::a50f:27de:660a:544d%4]) with mapi id 15.20.6455.037; Fri, 9 Jun 2023 14:37:49 +0000 From: "Wu, Jiaxin" To: "Ni, Ray" , "devel@edk2.groups.io" CC: "Wang, Jian J" , "Gao, Liming" Subject: Re: [PATCH V2 4/6] MdeModulePkg/SmmCore: Add perf-logging for SmmDriverDispatchHandler Thread-Topic: [PATCH V2 4/6] MdeModulePkg/SmmCore: Add perf-logging for SmmDriverDispatchHandler Thread-Index: AQHZk7Pt3+jwIPRhIEGdTKj0B77AEK+CmFsQ Date: Fri, 9 Jun 2023 14:37:49 +0000 Message-ID: References: <20230531113438.1797-1-ray.ni@intel.com> <20230531113438.1797-5-ray.ni@intel.com> In-Reply-To: <20230531113438.1797-5-ray.ni@intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MN0PR11MB6158:EE_|MN0PR11MB6033:EE_ x-ms-office365-filtering-correlation-id: 0b52c87f-0f13-4bc6-2e9d-08db68f7193a x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: PTU0672BuWmQjAaWFNVFoB6GqqiGPwxrt+YZsD5M3Oqkp9IFL2eOslbppqab19pr7e/edops2BCPnxHlJep5inufk/LNmH8+BlISqe89leC3pvuBrFPlhbQmfGv1LEIYEn4bgg4FIglUN+O9IaDIo1GxnFb1HPMk4Asb3XQDoO7+zPy30XlF2Jd/gcal6J9k8E7ZnSjItDnlup2ZwEmYyiP+LuQVh04tKBt38LhZ4/0pm0xMokGwfTU3MhvB9szyReGIK9Yk1GOKBAfQ7OzOPgrt1baXagv1UFFe5iaXTNOxkkYc9uN0nV14wt8cXHq9wuGe1oOkuR+8Uv5z0EFpfK2oIMJpfMmGjMrlsF+bXws+v5I6ScARSdeimk1RdyL59yq0U/LUKwn8eXOUgOLheOHCjLi3GSWFG9myLJDD7cm0LiKU29BsIwGIbL/KW6oGIWswwnBsTnNPK65lwgj6QO7sqwc2HJHaykkasuohlgEPNTnvXaXVK4b9q99cISd0R+/rzxFzn4IUd9dKLkRYzi4Dd5K2/JimFIFKG8pKr8ZOW7slkWbUXF10YsxQe2LCm5Fe/o4ojm1M7o0gyBVHXs19B75T/Al0pcNJvGoVR/Wz6k+EnSnJF9zmc5E9MPbk x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN0PR11MB6158.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(136003)(346002)(396003)(376002)(39860400002)(366004)(451199021)(66446008)(7696005)(2906002)(76116006)(6506007)(9686003)(53546011)(4326008)(41300700001)(71200400001)(66556008)(66946007)(478600001)(52536014)(66476007)(26005)(55016003)(64756008)(186003)(316002)(33656002)(38070700005)(5660300002)(86362001)(82960400001)(122000001)(38100700002)(83380400001)(8936002)(54906003)(8676002)(110136005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?pTNOBtmSZlptDLJNHkuiXsk24I4bnmGCYAzXi+5tvuBMqrBAvNMbR4q19WW9?= =?us-ascii?Q?pRvZ+B1EQ0rNpZz6EnVoY9J70VlsJHhEA1JV0tYmWXhYdTsx0YvIGWXc8Fdp?= =?us-ascii?Q?4qaaedS9obI5BGVXm196HEJlLJuZ1WkX6oI0S/s801YNINJKTJ/6RsytNsT1?= =?us-ascii?Q?SGJEEJ0GjJIv0vMtmvAXMqFaDCKg7H0ceqkfzFb+qGhZEeknfpFgezFbu5Gu?= =?us-ascii?Q?geFfG17VbFzk/D9xP4k+ZmsfM+vZl3OLjBsydS7AZDfvFuX6XGSV2otSZT6W?= =?us-ascii?Q?QfDWNZvVkYRUsQiioPI1i0+gy2i+BXfqqCDP69FNV71zNORtCpkRosTKkH2g?= =?us-ascii?Q?CZL0a6xLKn2kAxNjkWLY3E+NpE0fdrmMQdcSGRK6JakkLutvpHzkP/KJzavA?= =?us-ascii?Q?G6QdVsZSDB979GMoNi15fy4knb3KU7T2GxKB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fsrG+Y3cqQl/fkBqIIUOMiTqoIXa6Y2awdLqOU0Nu1WRlm36wuvr?= =?us-ascii?Q?Gn+un/fswuoYGrcgWSHBt57e+BWrk9mHgMWHnkuxp0ylvR4gHDa5+L3+qjBH?= =?us-ascii?Q?TU0Ye1Qz24fOQ51GV4F6+zfc/aUrIA8wt7g6O5rw+PXY0CBrYfQc+cZ57cbh?= =?us-ascii?Q?seAKABj7TPpPHqClsz1gO9FPboJMlhmmcXrKwU9XwRCX7GKeOLPEauXpP92q?= =?us-ascii?Q?+fYifLAfFPmHMEUDDzTE1hVK2GQIvb7Da6fHg6rR?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN0PR11MB6158.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0b52c87f-0f13-4bc6-2e9d-08db68f7193a X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jun 2023 14:37:49.1939 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: /fvffrtOr7pgKp+LNHDkOMXq2lE1XMDlB6OT1ZkPCUZoBuWlEaziKuyxeBc1BDdV3rh1G2E94eomSrd1vr957Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR11MB6033 Return-Path: jiaxin.wu@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Jiaxin Wu > -----Original Message----- > From: Ni, Ray > Sent: Wednesday, May 31, 2023 7:35 PM > To: devel@edk2.groups.io > Cc: Wang, Jian J ; Gao, Liming > ; Wu, Jiaxin > Subject: [PATCH V2 4/6] MdeModulePkg/SmmCore: Add perf-logging for > SmmDriverDispatchHandler >=20 > SmmDriverDispatchHandler is the routine that dispatches SMM drivers > from FV. It's a time-consuming routine. > Add perf-logging for this routine. >=20 > Signed-off-by: Ray Ni > Cc: Jian J Wang > Cc: Liming Gao > Cc: Jiaxin Wu > --- > MdeModulePkg/Core/PiSmmCore/Dispatcher.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) >=20 > diff --git a/MdeModulePkg/Core/PiSmmCore/Dispatcher.c > b/MdeModulePkg/Core/PiSmmCore/Dispatcher.c > index f635565dd1..bb789e5890 100644 > --- a/MdeModulePkg/Core/PiSmmCore/Dispatcher.c > +++ b/MdeModulePkg/Core/PiSmmCore/Dispatcher.c > @@ -28,7 +28,7 @@ > Depex - Dependency Expression. >=20 >=20 >=20 > Copyright (c) 2014, Hewlett-Packard Development Company, L.P. >=20 > - Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
>=20 > + Copyright (c) 2009 - 2023, Intel Corporation. All rights reserved.
>=20 > SPDX-License-Identifier: BSD-2-Clause-Patent >=20 >=20 >=20 > **/ >=20 > @@ -1322,6 +1322,8 @@ SmmDriverDispatchHandler ( > return EFI_NOT_FOUND; >=20 > } >=20 >=20 >=20 > + PERF_CALLBACK_BEGIN (&gEfiEventDxeDispatchGuid); >=20 > + >=20 > for (HandleIndex =3D 0; HandleIndex < HandleCount; HandleIndex++) { >=20 > FvHandle =3D HandleBuffer[HandleIndex]; >=20 >=20 >=20 > @@ -1511,6 +1513,7 @@ SmmDriverDispatchHandler ( > } >=20 > } >=20 >=20 >=20 > + PERF_CALLBACK_END (&gEfiEventDxeDispatchGuid); >=20 > return EFI_SUCCESS; >=20 > } >=20 >=20 >=20 > -- > 2.39.1.windows.1