2 Null routines for memory profile for PiSmmCore.
4 Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
11 #include <Guid/MemoryProfile.h>
14 Record memory profile of multilevel caller.
16 @param[in] CallerAddress Address of caller.
17 @param[in] Action Memory profile action.
18 @param[in] MemoryType Memory type.
19 EfiMaxMemoryType means the MemoryType is unknown.
20 @param[in] Buffer Buffer address.
21 @param[in] Size Buffer size.
22 @param[in] ActionString String for memory profile action.
23 Only needed for user defined allocate action.
25 @return EFI_SUCCESS Memory profile is updated.
26 @return EFI_UNSUPPORTED Memory profile is unsupported,
27 or memory profile for the image is not required,
28 or memory profile for the memory type is not required.
29 @return EFI_ACCESS_DENIED It is during memory profile data getting.
30 @return EFI_ABORTED Memory profile recording is not enabled.
31 @return EFI_OUT_OF_RESOURCES No enough resource to update memory profile for allocate action.
32 @return EFI_NOT_FOUND No matched allocate info found for free action.
37 MemoryProfileLibRecord (
38 IN PHYSICAL_ADDRESS CallerAddress
,
39 IN MEMORY_PROFILE_ACTION Action
,
40 IN EFI_MEMORY_TYPE MemoryType
,
43 IN CHAR8
*ActionString OPTIONAL
46 return EFI_UNSUPPORTED
;