TianoCore EDK2 master
|
#include <PiDxe.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
#include <Library/DebugLib.h>
#include <Library/PrintLib.h>
#include <Library/UefiLib.h>
#include <Library/DevicePathLib.h>
#include <Library/DxeServicesLib.h>
#include <Protocol/SmmCommunication.h>
#include <Guid/PiSmmCommunicationRegionTable.h>
#include <Guid/SmiHandlerProfile.h>
Go to the source code of this file.
Macros | |
#define | PROFILE_NAME_STRING_LENGTH 64 |
Functions | |
VOID | InternalDumpData (IN UINT8 *Data, IN UINTN Size) |
VOID | GetSmiHandlerProfileDatabase (VOID) |
VOID | GetShortPdbFileName (IN CHAR8 *PdbFileName, OUT CHAR8 *AsciiBuffer) |
CHAR8 * | GetDriverNameString (IN SMM_CORE_IMAGE_DATABASE_STRUCTURE *ImageStruct) |
SMM_CORE_IMAGE_DATABASE_STRUCTURE * | GetImageFromRef (IN UINTN ImageRef) |
VOID | DumpSmmLoadedImage (VOID) |
CHAR8 * | SxTypeToString (IN EFI_SLEEP_TYPE Type) |
CHAR8 * | SxPhaseToString (IN EFI_SLEEP_PHASE Phase) |
CHAR8 * | PowerButtonPhaseToString (IN EFI_POWER_BUTTON_PHASE Phase) |
CHAR8 * | StandbyButtonPhaseToString (IN EFI_STANDBY_BUTTON_PHASE Phase) |
CHAR8 * | IoTrapTypeToString (IN EFI_SMM_IO_TRAP_DISPATCH_TYPE Type) |
CHAR8 * | UsbTypeToString (IN EFI_USB_SMI_TYPE Type) |
VOID | DumpSmiChildContext (IN EFI_GUID *HandlerType, IN VOID *Context, IN UINTN ContextSize) |
VOID | DumpSmiHandler (IN UINT32 HandlerCategory) |
EFI_STATUS EFIAPI | SmiHandlerProfileInfoEntrypoint (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
Variables | |
CHAR8 | mNameString [PROFILE_NAME_STRING_LENGTH+1] |
VOID * | mSmiHandlerProfileDatabase |
UINTN | mSmiHandlerProfileDatabaseSize |
CHAR8 * | mSxTypeString [] |
CHAR8 * | mSxPhaseString [] |
CHAR8 * | mPowerButtonPhaseString [] |
CHAR8 * | mStandbyButtonPhaseString [] |
CHAR8 * | mIoTrapTypeString [] |
CHAR8 * | mUsbTypeString [] |
Shell application to dump SMI handler profile information.
Copyright (c) 2017, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file SmiHandlerProfileInfo.c.
#define PROFILE_NAME_STRING_LENGTH 64 |
Definition at line 25 of file SmiHandlerProfileInfo.c.
Dump SMI child context.
HandlerType | the handler type |
Context | the handler context |
ContextSize | the handler context size |
Definition at line 539 of file SmiHandlerProfileInfo.c.
VOID DumpSmiHandler | ( | IN UINT32 | HandlerCategory | ) |
Dump SMI handler in HandlerCategory.
HandlerCategory | SMI handler category |
Definition at line 585 of file SmiHandlerProfileInfo.c.
VOID DumpSmmLoadedImage | ( | VOID | ) |
Dump SMM loaded image information.
Definition at line 341 of file SmiHandlerProfileInfo.c.
CHAR8 * GetDriverNameString | ( | IN SMM_CORE_IMAGE_DATABASE_STRUCTURE * | ImageStruct | ) |
Get a human readable name for an image. The following methods will be tried orderly:
[in] | ImageStruct | Point to the image structure. |
Definition at line 255 of file SmiHandlerProfileInfo.c.
SMM_CORE_IMAGE_DATABASE_STRUCTURE * GetImageFromRef | ( | IN UINTN | ImageRef | ) |
Get image structure from reference index.
ImageRef | the image reference index |
Definition at line 317 of file SmiHandlerProfileInfo.c.
Get the file name portion of the Pdb File Name.
The portion of the Pdb File Name between the last backslash and either a following period or the end of the string is copied into AsciiBuffer. The name is truncated, if necessary, to ensure that AsciiBuffer is not overrun.
[in] | PdbFileName | Pdb file name. |
[out] | AsciiBuffer | The resultant Ascii File Name. |
Definition at line 201 of file SmiHandlerProfileInfo.c.
VOID GetSmiHandlerProfileDatabase | ( | VOID | ) |
Get SMI handler profile database.
Definition at line 57 of file SmiHandlerProfileInfo.c.
This function dump raw data.
Data | raw data |
Size | raw data size |
Definition at line 38 of file SmiHandlerProfileInfo.c.
CHAR8 * IoTrapTypeToString | ( | IN EFI_SMM_IO_TRAP_DISPATCH_TYPE | Type | ) |
Convert IoTrapType to a string.
Type | IoTrapType |
Definition at line 494 of file SmiHandlerProfileInfo.c.
CHAR8 * PowerButtonPhaseToString | ( | IN EFI_POWER_BUTTON_PHASE | Phase | ) |
Convert PowerButtonPhase to a string.
Phase | PowerButtonPhase |
Definition at line 443 of file SmiHandlerProfileInfo.c.
EFI_STATUS EFIAPI SmiHandlerProfileInfoEntrypoint | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
The Entry Point for SMI handler profile info application.
ImageHandle | The firmware allocated handle for the EFI image. |
SystemTable | A pointer to the EFI System Table. |
EFI_SUCCESS | The entry point is executed successfully. |
Other | Some error occurred when executing this entry point. |
Definition at line 656 of file SmiHandlerProfileInfo.c.
CHAR8 * StandbyButtonPhaseToString | ( | IN EFI_STANDBY_BUTTON_PHASE | Phase | ) |
Convert StandbyButtonPhase to a string.
Phase | StandbyButtonPhase |
Definition at line 468 of file SmiHandlerProfileInfo.c.
CHAR8 * SxPhaseToString | ( | IN EFI_SLEEP_PHASE | Phase | ) |
Convert SxPhase to a string.
Phase | SxPhase |
Definition at line 418 of file SmiHandlerProfileInfo.c.
CHAR8 * SxTypeToString | ( | IN EFI_SLEEP_TYPE | Type | ) |
Convert SxType to a string.
Type | SxType |
Definition at line 393 of file SmiHandlerProfileInfo.c.
CHAR8 * UsbTypeToString | ( | IN EFI_USB_SMI_TYPE | Type | ) |
Convert UsbType to a string.
Type | UsbType |
Definition at line 519 of file SmiHandlerProfileInfo.c.
CHAR8* mIoTrapTypeString[] |
Definition at line 480 of file SmiHandlerProfileInfo.c.
CHAR8 mNameString[PROFILE_NAME_STRING_LENGTH+1] |
Definition at line 26 of file SmiHandlerProfileInfo.c.
CHAR8* mPowerButtonPhaseString[] |
Definition at line 430 of file SmiHandlerProfileInfo.c.
VOID* mSmiHandlerProfileDatabase |
Definition at line 28 of file SmiHandlerProfileInfo.c.
UINTN mSmiHandlerProfileDatabaseSize |
Definition at line 29 of file SmiHandlerProfileInfo.c.
CHAR8* mStandbyButtonPhaseString[] |
Definition at line 455 of file SmiHandlerProfileInfo.c.
CHAR8* mSxPhaseString[] |
Definition at line 405 of file SmiHandlerProfileInfo.c.
CHAR8* mSxTypeString[] |
Definition at line 376 of file SmiHandlerProfileInfo.c.
CHAR8* mUsbTypeString[] |
Definition at line 506 of file SmiHandlerProfileInfo.c.