[edk2-devel] [PATCH V3 8/8] MdeModulePkg/SmmCore: Perf-log PlatformHookBefore/AfterSmmDispatch

Wu, Jiaxin jiaxin.wu at intel.com
Tue Jun 13 08:44:51 UTC 2023


Reviewed-by: Jiaxin Wu <jiaxin.wu at intel.com>

> -----Original Message-----
> From: Ni, Ray <ray.ni at intel.com>
> Sent: Tuesday, June 13, 2023 2:13 PM
> To: devel at edk2.groups.io
> Cc: Wang, Jian J <jian.j.wang at intel.com>; Gao, Liming
> <gaoliming at byosoft.com.cn>; Wu, Jiaxin <jiaxin.wu at intel.com>
> Subject: [PATCH V3 8/8] MdeModulePkg/SmmCore: Perf-log
> PlatformHookBefore/AfterSmmDispatch
> 
> Signed-off-by: Ray Ni <ray.ni at intel.com>
> Cc: Jian J Wang <jian.j.wang at intel.com>
> Cc: Liming Gao <gaoliming at byosoft.com.cn>
> Cc: Jiaxin Wu <jiaxin.wu at 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



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#106053): https://edk2.groups.io/g/devel/message/106053
Mute This Topic: https://groups.io/mt/99500191/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-




More information about the edk2-devel-archive mailing list