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>
This commit is contained in:
Ray Ni 2023-06-19 13:38:48 +08:00 committed by mergify[bot]
parent a87f5fdb3d
commit 56f65e4bad
1 changed files with 4 additions and 0 deletions

View File

@ -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