Reviewed-by: Jian J Wang <jian.j.w...@intel.com>
Regards, Jian > -----Original Message----- > From: Ni, Ray <ray...@intel.com> > Sent: Tuesday, June 13, 2023 2:13 PM > To: devel@edk2.groups.io > Cc: Wang, Jian J <jian.j.w...@intel.com>; Gao, Liming > <gaolim...@byosoft.com.cn>; Wu, Jiaxin <jiaxin...@intel.com>; Dong, Eric > <eric.d...@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...@intel.com> > Cc: Jian J Wang <jian.j.w...@intel.com> > Cc: Liming Gao <gaolim...@byosoft.com.cn> > Cc: Jiaxin Wu <jiaxin...@intel.com> > Reviewed-by: Jiaxin Wu <jiaxin...@intel.com> > Reviewed-by: Eric Dong <eric.d...@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/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-