TianoCore EDK2 master
|
#include <Uefi.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/DebugLib.h>
#include <Guid/MemoryProfile.h>
Go to the source code of this file.
Functions | |
EFI_STATUS EFIAPI | MemoryProfileLibConstructor (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
EFI_STATUS EFIAPI | MemoryProfileLibRecord (IN PHYSICAL_ADDRESS CallerAddress, IN MEMORY_PROFILE_ACTION Action, IN EFI_MEMORY_TYPE MemoryType, IN VOID *Buffer, IN UINTN Size, IN CHAR8 *ActionString OPTIONAL) |
Variables | |
EDKII_MEMORY_PROFILE_PROTOCOL * | mLibProfileProtocol |
Support routines for memory profile for Dxe phase drivers.
Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file DxeMemoryProfileLib.c.
EFI_STATUS EFIAPI MemoryProfileLibConstructor | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
The constructor function initializes memory profile for DXE phase.
ImageHandle | The firmware allocated handle for the EFI image. |
SystemTable | A pointer to the EFI System Table. |
EFI_SUCCESS | The constructor always returns EFI_SUCCESS. |
Definition at line 29 of file DxeMemoryProfileLib.c.
EFI_STATUS EFIAPI MemoryProfileLibRecord | ( | IN PHYSICAL_ADDRESS | CallerAddress, |
IN MEMORY_PROFILE_ACTION | Action, | ||
IN EFI_MEMORY_TYPE | MemoryType, | ||
IN VOID * | Buffer, | ||
IN UINTN | Size, | ||
IN CHAR8 *ActionString | OPTIONAL | ||
) |
Record memory profile of multilevel caller.
[in] | CallerAddress | Address of caller. |
[in] | Action | Memory profile action. |
[in] | MemoryType | Memory type. EfiMaxMemoryType means the MemoryType is unknown. |
[in] | Buffer | Buffer address. |
[in] | Size | Buffer size. |
[in] | ActionString | String for memory profile action. Only needed for user defined allocate action. |
Definition at line 72 of file DxeMemoryProfileLib.c.
EDKII_MEMORY_PROFILE_PROTOCOL* mLibProfileProtocol |
Definition at line 16 of file DxeMemoryProfileLib.c.