summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRay Ni <ray.ni@intel.com>2023-06-19 13:38:48 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-06-21 04:37:17 +0000
commit56f65e4bad770b0d33eb54b3c180c9ec5057d8f2 (patch)
tree41eddf4c7949e71e4e970ce06c602f5a8e5abfe9
parenta87f5fdb3d1a23b9ad2475007c58c0969863293f (diff)
downloadedk2-56f65e4bad770b0d33eb54b3c180c9ec5057d8f2.tar.gz
edk2-56f65e4bad770b0d33eb54b3c180c9ec5057d8f2.tar.bz2
edk2-56f65e4bad770b0d33eb54b3c180c9ec5057d8f2.zip
MdeModulePkg/SmmCore: Perf-log PlatformHookBefore/AfterSmmDispatch
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> Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
-rw-r--r--MdeModulePkg/Core/PiSmmCore/PiSmmCore.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c b/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c
index 68af9ab81b..e957cb67f8 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);
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);
PlatformHookAfterSmmDispatch ();
+ PERF_END (NULL, "PlatformHookAfterSmmDispatch", NULL, 0);
//
// If a legacy boot has occurred, then make sure gSmmCorePrivate is not accessed