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