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