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:49 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=UI5xqxSr; 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=1686636829; x=1718172829; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=4XSo7ADOyngqA6TLg7/fOv6QSf6gtH9ysPwIE6NCM9I=; b=UI5xqxSrXRBuS+a+R3dV97MfUvZaFu19aJMbuBXc1+AWmffr1S9UA5/L xCtB1TuidtIFVGcvRvFME5C/+E+sVl2GXJX7i9WflXf63rCYz2w7fnnQJ QARRVhaMeLsKv9nMROvfnCboZ0HPNVjDzZtQ4n18E23yequEyQNKaHHIs 4nZHW/jxmxGICwmv5ZzChvBIf7Rf3g2L38EzLCx5ACeah4B0Uv6U9ltTq eEuvx5RqIhgZ2rSZmdsgE5yccLFNf74NBiwDhnPbhh8aQyBOaAa7459xX mRCaVtz3BRXIjOlr7fj6ava7c5D4e17YQtQu7Al7mtMJe2iNir+PSlKwu g==; X-IronPort-AV: E=McAfee;i="6600,9927,10739"; a="358238328" X-IronPort-AV: E=Sophos;i="6.00,238,1681196400"; d="scan'208";a="358238328" 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:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10739"; a="741306398" X-IronPort-AV: E=Sophos;i="6.00,238,1681196400"; d="scan'208";a="741306398" Received: from shwdeopenlab706.ccr.corp.intel.com ([10.239.55.95]) by orsmga008.jf.intel.com with ESMTP; 12 Jun 2023 23:13:47 -0700 From: "Ni, Ray" To: devel@edk2.groups.io Cc: Jian J Wang , Liming Gao , Jiaxin Wu Subject: [PATCH V3 8/8] MdeModulePkg/SmmCore: Perf-log PlatformHookBefore/AfterSmmDispatch Date: Tue, 13 Jun 2023 14:13:25 +0800 Message-Id: <20230613061325.1664-9-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 Signed-off-by: Ray Ni Cc: Jian J Wang Cc: Liming Gao Cc: Jiaxin Wu --- MdeModulePkg/Core/PiSmmCore/PiSmmCore.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c b/MdeModulePkg/Core/Pi= SmmCore/PiSmmCore.c index 68af9ab81b..a8537829e3 100644 --- a/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c +++ b/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c @@ -692,7 +692,9 @@ SmmEntryPoint ( //=0D // Call platform hook before Smm Dispatch=0D //=0D + PERF_START (NULL, "PlatformHookBeforeSmmDispatch", NULL, 0, 0);=0D PlatformHookBeforeSmmDispatch ();=0D + PERF_END (NULL, "PlatformHookBeforeSmmDispatch", NULL, 0);=0D =0D //=0D // Call memory management hook function=0D @@ -769,7 +771,9 @@ SmmEntryPoint ( //=0D // Call platform hook after Smm Dispatch=0D //=0D + PERF_START (NULL, "PlatformHookAfterSmmDispatch", NULL, 0, 0);=0D PlatformHookAfterSmmDispatch ();=0D + PERF_END (NULL, "PlatformHookAfterSmmDispatch", NULL, 0)=0D =0D //=0D // If a legacy boot has occurred, then make sure gSmmCorePrivate is not = accessed=0D --=20 2.39.1.windows.1