MdeModulePkg/SmiHandlerProfileInfo: Include profile SMI in profile

Includes the profiler SMI in the profile itself for completeness.

Co-authored-by: Michael Kubacki <michael.kubacki@microsoft.com>
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
This commit is contained in:
Bret Barkelew 2018-01-19 12:30:14 -08:00 committed by mergify[bot]
parent 62bf2aefc7
commit 489e4a60ea

View File

@ -2,6 +2,7 @@
SMI handler profile support. SMI handler profile support.
Copyright (c) 2017, Intel Corporation. All rights reserved.<BR> Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
Copyright (c) Microsoft Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent SPDX-License-Identifier: BSD-2-Clause-Patent
**/ **/
@ -47,6 +48,14 @@ RegisterSmiHandlerProfileHandler (
VOID VOID
); );
/**
Build SMI handler profile database.
**/
VOID
BuildSmiHandlerProfileDatabase (
VOID
);
/** /**
Retrieves and returns a pointer to the entry point to a PE/COFF image that has been loaded Retrieves and returns a pointer to the entry point to a PE/COFF image that has been loaded
into system memory with the PE/COFF Loader Library functions. into system memory with the PE/COFF Loader Library functions.
@ -495,6 +504,8 @@ SmmReadyToLockInSmiHandlerProfile (
IN EFI_HANDLE Handle IN EFI_HANDLE Handle
) )
{ {
RegisterSmiHandlerProfileHandler ();
// //
// Dump all image // Dump all image
// //
@ -528,7 +539,7 @@ SmmReadyToLockInSmiHandlerProfile (
DEBUG ((DEBUG_INFO, "\n")); DEBUG ((DEBUG_INFO, "\n"));
RegisterSmiHandlerProfileHandler (); BuildSmiHandlerProfileDatabase ();
if (mImageStruct != NULL) { if (mImageStruct != NULL) {
FreePool (mImageStruct); FreePool (mImageStruct);
@ -860,7 +871,7 @@ GetSmiHandlerProfileDatabaseData (
} }
/** /**
build SMI handler profile database. Build SMI handler profile database.
**/ **/
VOID VOID
BuildSmiHandlerProfileDatabase ( BuildSmiHandlerProfileDatabase (
@ -1074,8 +1085,6 @@ RegisterSmiHandlerProfileHandler (
&DispatchHandle &DispatchHandle
); );
ASSERT_EFI_ERROR (Status); ASSERT_EFI_ERROR (Status);
BuildSmiHandlerProfileDatabase ();
} }
/** /**