]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryProfileLibNull.c
Merge branch 'master' of https://github.com/tianocore/edk2
[mirror_edk2.git] / MdeModulePkg / Library / PiSmmCoreMemoryAllocationLib / PiSmmCoreMemoryProfileLibNull.c
1 /** @file
2 Null routines for memory profile for PiSmmCore.
3
4 Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php.
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 **/
14
15 #include <PiSmm.h>
16
17 #include <Guid/MemoryProfile.h>
18
19 /**
20 Record memory profile of multilevel caller.
21
22 @param[in] CallerAddress Address of caller.
23 @param[in] Action Memory profile action.
24 @param[in] MemoryType Memory type.
25 EfiMaxMemoryType means the MemoryType is unknown.
26 @param[in] Buffer Buffer address.
27 @param[in] Size Buffer size.
28 @param[in] ActionString String for memory profile action.
29 Only needed for user defined allocate action.
30
31 @return EFI_SUCCESS Memory profile is updated.
32 @return EFI_UNSUPPORTED Memory profile is unsupported,
33 or memory profile for the image is not required,
34 or memory profile for the memory type is not required.
35 @return EFI_ACCESS_DENIED It is during memory profile data getting.
36 @return EFI_ABORTED Memory profile recording is not enabled.
37 @return EFI_OUT_OF_RESOURCES No enough resource to update memory profile for allocate action.
38 @return EFI_NOT_FOUND No matched allocate info found for free action.
39
40 **/
41 EFI_STATUS
42 EFIAPI
43 MemoryProfileLibRecord (
44 IN PHYSICAL_ADDRESS CallerAddress,
45 IN MEMORY_PROFILE_ACTION Action,
46 IN EFI_MEMORY_TYPE MemoryType,
47 IN VOID *Buffer,
48 IN UINTN Size,
49 IN CHAR8 *ActionString OPTIONAL
50 )
51 {
52 return EFI_UNSUPPORTED;
53 }
54