[edk2-devel] [PATCH V3 4/8] MdeModulePkg/SmmCore: Add perf-logging for SmmDriverDispatchHandler

Wang, Jian J jian.j.wang at intel.com
Fri Jun 16 03:19:53 UTC 2023


Reviewed-by: Jian J Wang <jian.j.wang at intel.com>

Regards,
Jian



> -----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>; Dong, Eric
> <eric.dong at intel.com>
> Subject: [PATCH V3 4/8] MdeModulePkg/SmmCore: Add perf-logging for
> SmmDriverDispatchHandler
> 
> SmmDriverDispatchHandler is the routine that dispatches SMM drivers
> from FV. It's a time-consuming routine.
> Add perf-logging for this routine.
> 
> 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>
> Reviewed-by: Jiaxin Wu <jiaxin.wu at intel.com>
> Reviewed-by: Eric Dong <eric.dong at intel.com>
> ---
>  MdeModulePkg/Core/PiSmmCore/Dispatcher.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/MdeModulePkg/Core/PiSmmCore/Dispatcher.c
> b/MdeModulePkg/Core/PiSmmCore/Dispatcher.c
> index f635565dd1..bb789e5890 100644
> --- a/MdeModulePkg/Core/PiSmmCore/Dispatcher.c
> +++ b/MdeModulePkg/Core/PiSmmCore/Dispatcher.c
> @@ -28,7 +28,7 @@
>    Depex - Dependency Expression.
> 
> 
> 
>    Copyright (c) 2014, Hewlett-Packard Development Company, L.P.
> 
> -  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
> 
> +  Copyright (c) 2009 - 2023, Intel Corporation. All rights reserved.<BR>
> 
>    SPDX-License-Identifier: BSD-2-Clause-Patent
> 
> 
> 
>  **/
> 
> @@ -1322,6 +1322,8 @@ SmmDriverDispatchHandler (
>      return EFI_NOT_FOUND;
> 
>    }
> 
> 
> 
> +  PERF_CALLBACK_BEGIN (&gEfiEventDxeDispatchGuid);
> 
> +
> 
>    for (HandleIndex = 0; HandleIndex < HandleCount; HandleIndex++) {
> 
>      FvHandle = HandleBuffer[HandleIndex];
> 
> 
> 
> @@ -1511,6 +1513,7 @@ SmmDriverDispatchHandler (
>      }
> 
>    }
> 
> 
> 
> +  PERF_CALLBACK_END (&gEfiEventDxeDispatchGuid);
> 
>    return EFI_SUCCESS;
> 
>  }
> 
> 
> 
> --
> 2.39.1.windows.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#106135): https://edk2.groups.io/g/devel/message/106135
Mute This Topic: https://groups.io/mt/99500185/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