]>
Commit | Line | Data |
---|---|---|
cdad7675 SZ |
1 | /** @file\r |
2 | Null routines for memory profile for PiSmmCore.\r | |
3 | \r | |
d1102dba | 4 | Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>\r |
9d510e61 | 5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
cdad7675 SZ |
6 | \r |
7 | **/\r | |
8 | \r | |
9 | #include <PiSmm.h>\r | |
10 | \r | |
11 | #include <Guid/MemoryProfile.h>\r | |
12 | \r | |
13 | /**\r | |
14 | Record memory profile of multilevel caller.\r | |
15 | \r | |
16 | @param[in] CallerAddress Address of caller.\r | |
17 | @param[in] Action Memory profile action.\r | |
18 | @param[in] MemoryType Memory type.\r | |
19 | EfiMaxMemoryType means the MemoryType is unknown.\r | |
20 | @param[in] Buffer Buffer address.\r | |
21 | @param[in] Size Buffer size.\r | |
22 | @param[in] ActionString String for memory profile action.\r | |
23 | Only needed for user defined allocate action.\r | |
24 | \r | |
25 | @return EFI_SUCCESS Memory profile is updated.\r | |
26 | @return EFI_UNSUPPORTED Memory profile is unsupported,\r | |
27 | or memory profile for the image is not required,\r | |
28 | or memory profile for the memory type is not required.\r | |
29 | @return EFI_ACCESS_DENIED It is during memory profile data getting.\r | |
30 | @return EFI_ABORTED Memory profile recording is not enabled.\r | |
31 | @return EFI_OUT_OF_RESOURCES No enough resource to update memory profile for allocate action.\r | |
32 | @return EFI_NOT_FOUND No matched allocate info found for free action.\r | |
33 | \r | |
34 | **/\r | |
35 | EFI_STATUS\r | |
36 | EFIAPI\r | |
37 | MemoryProfileLibRecord (\r | |
38 | IN PHYSICAL_ADDRESS CallerAddress,\r | |
39 | IN MEMORY_PROFILE_ACTION Action,\r | |
40 | IN EFI_MEMORY_TYPE MemoryType,\r | |
41 | IN VOID *Buffer,\r | |
42 | IN UINTN Size,\r | |
43 | IN CHAR8 *ActionString OPTIONAL\r | |
44 | )\r | |
45 | {\r | |
46 | return EFI_UNSUPPORTED;\r | |
47 | }\r | |
48 | \r |