public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Ni, Ray" <ray.ni@intel.com>
To: devel@edk2.groups.io
Cc: Jian J Wang <jian.j.wang@intel.com>,
	Liming Gao <gaoliming@byosoft.com.cn>,
	Jiaxin Wu <jiaxin.wu@intel.com>
Subject: [PATCH V3 8/8] MdeModulePkg/SmmCore: Perf-log PlatformHookBefore/AfterSmmDispatch
Date: Tue, 13 Jun 2023 14:13:25 +0800	[thread overview]
Message-ID: <20230613061325.1664-9-ray.ni@intel.com> (raw)
In-Reply-To: <20230613061325.1664-1-ray.ni@intel.com>

Signed-off-by: Ray Ni <ray.ni@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Jiaxin Wu <jiaxin.wu@intel.com>
---
 MdeModulePkg/Core/PiSmmCore/PiSmmCore.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c b/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c
index 68af9ab81b..a8537829e3 100644
--- a/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c
+++ b/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c
@@ -692,7 +692,9 @@ SmmEntryPoint (
   //
   // Call platform hook before Smm Dispatch
   //
+  PERF_START (NULL, "PlatformHookBeforeSmmDispatch", NULL, 0, 0);
   PlatformHookBeforeSmmDispatch ();
+  PERF_END (NULL, "PlatformHookBeforeSmmDispatch", NULL, 0);
 
   //
   // Call memory management hook function
@@ -769,7 +771,9 @@ SmmEntryPoint (
   //
   // Call platform hook after Smm Dispatch
   //
+  PERF_START (NULL, "PlatformHookAfterSmmDispatch", NULL, 0, 0);
   PlatformHookAfterSmmDispatch ();
+  PERF_END (NULL, "PlatformHookAfterSmmDispatch", NULL, 0)
 
   //
   // If a legacy boot has occurred, then make sure gSmmCorePrivate is not accessed
-- 
2.39.1.windows.1


  parent reply	other threads:[~2023-06-13  6:13 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-13  6:13 [PATCH V3 0/8] Enable SMM perf-logging Ni, Ray
2023-06-13  6:13 ` [PATCH V3 1/8] UefiCpuPkg/CpuSmm: Add perf-logging for time-consuming BSP procedures Ni, Ray
2023-06-13  6:13 ` [PATCH V3 2/8] UefiCpuPkg/CpuSmm: Add perf-logging for MP procedures Ni, Ray
2023-06-13  6:13 ` [PATCH V3 3/8] MdeModulePkg/SmmCore: Add perf-logging for time-consuming procedures Ni, Ray
2023-06-16  3:19   ` Wang, Jian J
2023-06-13  6:13 ` [PATCH V3 4/8] MdeModulePkg/SmmCore: Add perf-logging for SmmDriverDispatchHandler Ni, Ray
2023-06-16  3:19   ` Wang, Jian J
2023-06-13  6:13 ` [PATCH V3 5/8] MdeModulePkg/SmmPerformanceLib: Disable perf-logging after ExitBS Ni, Ray
2023-06-16  3:27   ` Wang, Jian J
2023-06-13  6:13 ` [PATCH V3 6/8] MdeModulePkg/SmmCorePerformanceLib: Disable perf-logging at runtime Ni, Ray
2023-06-16  3:28   ` Wang, Jian J
2023-06-20  9:34   ` 回复: [edk2-devel] " gaoliming
2023-06-13  6:13 ` [PATCH V3 7/8] UefiCpuPkg/SmmCpu: Add PcdSmmApPerfLogEnable control AP perf-logging Ni, Ray
2023-06-13  6:13 ` Ni, Ray [this message]
2023-06-13  8:44   ` [PATCH V3 8/8] MdeModulePkg/SmmCore: Perf-log PlatformHookBefore/AfterSmmDispatch Wu, Jiaxin
2023-06-16  3:29   ` Wang, Jian J

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230613061325.1664-9-ray.ni@intel.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox