]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryProfileLibNull.c
MdeModulePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdeModulePkg / Library / PiSmmCoreMemoryAllocationLib / PiSmmCoreMemoryProfileLibNull.c
1 /** @file
2 Null routines for memory profile for PiSmmCore.
3
4 Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 **/
8
9 #include <PiSmm.h>
10
11 #include <Guid/MemoryProfile.h>
12
13 /**
14 Record memory profile of multilevel caller.
15
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.
24
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.
33
34 **/
35 EFI_STATUS
36 EFIAPI
37 MemoryProfileLibRecord (
38 IN PHYSICAL_ADDRESS CallerAddress,
39 IN MEMORY_PROFILE_ACTION Action,
40 IN EFI_MEMORY_TYPE MemoryType,
41 IN VOID *Buffer,
42 IN UINTN Size,
43 IN CHAR8 *ActionString OPTIONAL
44 )
45 {
46 return EFI_UNSUPPORTED;
47 }
48