36 Status =
gBS->LocateProtocol (
37 &gEdkiiMemoryProfileGuid,
39 (VOID **)&mLibProfileProtocol
41 if (EFI_ERROR (Status)) {
42 mLibProfileProtocol =
NULL;
73 IN PHYSICAL_ADDRESS CallerAddress,
74 IN MEMORY_PROFILE_ACTION Action,
78 IN CHAR8 *ActionString OPTIONAL
81 if (mLibProfileProtocol ==
NULL) {
82 return EFI_UNSUPPORTED;
85 return mLibProfileProtocol->Record (
EFI_STATUS EFIAPI MemoryProfileLibRecord(IN PHYSICAL_ADDRESS CallerAddress, IN MEMORY_PROFILE_ACTION Action, IN EFI_MEMORY_TYPE MemoryType, IN VOID *Buffer, IN UINTN Size, IN CHAR8 *ActionString OPTIONAL)
EFI_STATUS EFIAPI MemoryProfileLibConstructor(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)