From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web10.7304.1686636811551339614 for ; Mon, 12 Jun 2023 23:13:40 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=bPUaGDjo; spf=pass (domain: intel.com, ip: 192.55.52.115, mailfrom: ray.ni@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686636820; x=1718172820; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=vsZs72DefVnJJImRCq4TlIOO9yk+hwBPZPpr5phZzec=; b=bPUaGDjoiTIknnzOlFYLY+vU17raySLFTgVpibEdcy5b9korySQHSLID THyD3MmQyiQrAacLzFPF9fzxUWltBaXkEvSsTFI9/NcT5BjbLLs8SR7jq nTwxZWDv2v1pOMrG5CRMgk1iAk2u3dArexdOB+PLoo5T/LhotA1rW8hTA mIBL61vE+Ai37YcjMjgKHiKvrQql6FySrEIGs0sk4Gf7yIIEvWesSgQID 9axCbicY4yrh6PNxJzDPQI4Hjhh+cmiaVor6L8eIqCFoono+DyMFDe7K+ 3H9jiMKALAuhr3Vz9H4esSMK8jMOl7ROmCEcjMOyhc/ckHKe6dKP0eDiO g==; X-IronPort-AV: E=McAfee;i="6600,9927,10739"; a="358238237" X-IronPort-AV: E=Sophos;i="6.00,238,1681196400"; d="scan'208";a="358238237" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2023 23:13:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10739"; a="741306377" X-IronPort-AV: E=Sophos;i="6.00,238,1681196400"; d="scan'208";a="741306377" Received: from shwdeopenlab706.ccr.corp.intel.com ([10.239.55.95]) by orsmga008.jf.intel.com with ESMTP; 12 Jun 2023 23:13:38 -0700 From: "Ni, Ray" To: devel@edk2.groups.io Cc: Jian J Wang , Liming Gao , Jiaxin Wu , Eric Dong Subject: [PATCH V3 4/8] MdeModulePkg/SmmCore: Add perf-logging for SmmDriverDispatchHandler Date: Tue, 13 Jun 2023 14:13:21 +0800 Message-Id: <20230613061325.1664-5-ray.ni@intel.com> X-Mailer: git-send-email 2.39.1.windows.1 In-Reply-To: <20230613061325.1664-1-ray.ni@intel.com> References: <20230613061325.1664-1-ray.ni@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable SmmDriverDispatchHandler is the routine that dispatches SMM drivers from FV. It's a time-consuming routine. Add perf-logging for this routine. Signed-off-by: Ray Ni Cc: Jian J Wang Cc: Liming Gao Cc: Jiaxin Wu Reviewed-by: Jiaxin Wu Reviewed-by: Eric Dong --- MdeModulePkg/Core/PiSmmCore/Dispatcher.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Core/PiSmmCore/Dispatcher.c b/MdeModulePkg/Core/P= iSmmCore/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.=0D =0D Copyright (c) 2014, Hewlett-Packard Development Company, L.P.=0D - Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
=0D + Copyright (c) 2009 - 2023, Intel Corporation. All rights reserved.
=0D SPDX-License-Identifier: BSD-2-Clause-Patent=0D =0D **/=0D @@ -1322,6 +1322,8 @@ SmmDriverDispatchHandler ( return EFI_NOT_FOUND;=0D }=0D =0D + PERF_CALLBACK_BEGIN (&gEfiEventDxeDispatchGuid);=0D +=0D for (HandleIndex =3D 0; HandleIndex < HandleCount; HandleIndex++) {=0D FvHandle =3D HandleBuffer[HandleIndex];=0D =0D @@ -1511,6 +1513,7 @@ SmmDriverDispatchHandler ( }=0D }=0D =0D + PERF_CALLBACK_END (&gEfiEventDxeDispatchGuid);=0D return EFI_SUCCESS;=0D }=0D =0D --=20 2.39.1.windows.1