From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mx.groups.io with SMTP id smtpd.web11.11830.1685532887032383064 for ; Wed, 31 May 2023 04:34:52 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=lzC3LcGI; spf=pass (domain: intel.com, ip: 192.55.52.136, 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=1685532892; x=1717068892; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=crWj8B6QL5zztoCeKPt70jgZ7J+lq+iHSI+MhWIk8xM=; b=lzC3LcGIhNPls6S77qbJ+mOFWRtSH6goI3ne+rElNudyG+46c0BFcjPo 3oBILjZsWDodWZx5X+BSIYZtHTk/NNHWt3lvC9qm75RyFUIe1QxZwgC0J cvYxExLC+yG3NRC6F1nE+HgJCzX7nBr04ixwT5Ux4OymekYMBQifzV1nH ElikeFxActnsDsh0V0WYwv7BV5CiBcXZiT/lrAEannGWieB1cy6atl5me E0Lpqx0MlzPcv0ipwRYCUdiwuy5wJrsUokGoDaxm6aM5CodGfgFPdMXxL OjMUCfI9fSFo5m12boAzQDml3/3CSvaNb2nCSumAx81VVj4PYPxbW/mK6 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10726"; a="334830250" X-IronPort-AV: E=Sophos;i="6.00,207,1681196400"; d="scan'208";a="334830250" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2023 04:34:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10726"; a="739921504" X-IronPort-AV: E=Sophos;i="6.00,207,1681196400"; d="scan'208";a="739921504" Received: from shwdeopenlab706.ccr.corp.intel.com ([10.239.55.95]) by orsmga001.jf.intel.com with ESMTP; 31 May 2023 04:34:51 -0700 From: "Ni, Ray" To: devel@edk2.groups.io Cc: Jian J Wang , Liming Gao , Jiaxin Wu Subject: [PATCH V2 4/6] MdeModulePkg/SmmCore: Add perf-logging for SmmDriverDispatchHandler Date: Wed, 31 May 2023 19:34:36 +0800 Message-Id: <20230531113438.1797-5-ray.ni@intel.com> X-Mailer: git-send-email 2.39.1.windows.1 In-Reply-To: <20230531113438.1797-1-ray.ni@intel.com> References: <20230531113438.1797-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 --- 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