mirror of https://github.com/acidanthera/audk.git
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:
parent
62bf2aefc7
commit
489e4a60ea
|
@ -2,6 +2,7 @@
|
|||
SMI handler profile support.
|
||||
|
||||
Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) Microsoft Corporation.
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
**/
|
||||
|
@ -47,6 +48,14 @@ RegisterSmiHandlerProfileHandler (
|
|||
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
|
||||
into system memory with the PE/COFF Loader Library functions.
|
||||
|
@ -495,6 +504,8 @@ SmmReadyToLockInSmiHandlerProfile (
|
|||
IN EFI_HANDLE Handle
|
||||
)
|
||||
{
|
||||
RegisterSmiHandlerProfileHandler ();
|
||||
|
||||
//
|
||||
// Dump all image
|
||||
//
|
||||
|
@ -528,7 +539,7 @@ SmmReadyToLockInSmiHandlerProfile (
|
|||
|
||||
DEBUG ((DEBUG_INFO, "\n"));
|
||||
|
||||
RegisterSmiHandlerProfileHandler ();
|
||||
BuildSmiHandlerProfileDatabase ();
|
||||
|
||||
if (mImageStruct != NULL) {
|
||||
FreePool (mImageStruct);
|
||||
|
@ -860,7 +871,7 @@ GetSmiHandlerProfileDatabaseData (
|
|||
}
|
||||
|
||||
/**
|
||||
build SMI handler profile database.
|
||||
Build SMI handler profile database.
|
||||
**/
|
||||
VOID
|
||||
BuildSmiHandlerProfileDatabase (
|
||||
|
@ -1074,8 +1085,6 @@ RegisterSmiHandlerProfileHandler (
|
|||
&DispatchHandle
|
||||
);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
|
||||
BuildSmiHandlerProfileDatabase ();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue