TianoCore EDK2 master
Loading...
Searching...
No Matches
DxeCoreMemoryProfileServices.h File Reference

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI CoreUpdateProfile (IN PHYSICAL_ADDRESS CallerAddress, IN MEMORY_PROFILE_ACTION Action, IN EFI_MEMORY_TYPE MemoryType, IN UINTN Size, IN VOID *Buffer, IN CHAR8 *ActionString OPTIONAL)
 

Detailed Description

Contains function prototypes for Memory Profile Services in DxeCore.

This header file borrows the DxeCore Memory Profile services as the primitive for memory profile.

Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file DxeCoreMemoryProfileServices.h.

Function Documentation

◆ CoreUpdateProfile()

EFI_STATUS EFIAPI CoreUpdateProfile ( IN PHYSICAL_ADDRESS  CallerAddress,
IN MEMORY_PROFILE_ACTION  Action,
IN EFI_MEMORY_TYPE  MemoryType,
IN UINTN  Size,
IN VOID *  Buffer,
IN CHAR8 *ActionString  OPTIONAL 
)

Update memory profile information.

Parameters
CallerAddressAddress of caller who call Allocate or Free.
ActionThis Allocate or Free action.
MemoryTypeMemory type. EfiMaxMemoryType means the MemoryType is unknown.
SizeBuffer size.
BufferBuffer address.
ActionStringString for memory profile action. Only needed for user defined allocate action.
Returns
EFI_SUCCESS Memory profile is updated.
EFI_UNSUPPORTED Memory profile is unsupported, or memory profile for the image is not required, or memory profile for the memory type is not required.
EFI_ACCESS_DENIED It is during memory profile data getting.
EFI_ABORTED Memory profile recording is not enabled.
EFI_OUT_OF_RESOURCES No enough resource to update memory profile for allocate action.
EFI_NOT_FOUND No matched allocate info found for free action.

Definition at line 1357 of file MemoryProfileRecord.c.