X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdeModulePkg%2FLibrary%2FPeiPerformanceLib%2FPeiPerformanceLib.c;h=0778527d1ed57792ed4c0d40784198bf451414de;hb=7992c0b02d4bb4d166b118c63a38f98b7933bd97;hp=97dfd0d817d250fd70b19162e60558e8530c9f3f;hpb=857dfc455d7999f61c9b55f0a930c6b4087804b9;p=mirror_edk2.git diff --git a/MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.c b/MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.c index 97dfd0d817..0778527d1e 100644 --- a/MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.c +++ b/MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.c @@ -20,7 +20,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include -#include +#include #include #include @@ -57,7 +57,7 @@ InternalGetPerformanceHobLog ( PEI_PERFORMANCE_LOG_HEADER *PeiPerformanceLog; UINTN PeiPerformanceLogSize; - GuidHob = GetFirstGuidHob (&gPeiPerformanceHobGuid); + GuidHob = GetFirstGuidHob (&gPerformanceProtocolGuid); if (GuidHob != NULL) { // @@ -70,7 +70,7 @@ InternalGetPerformanceHobLog ( // PeiPerformanceLogSize = sizeof (PEI_PERFORMANCE_LOG_HEADER) + sizeof (PEI_PERFORMANCE_LOG_ENTRY) * PcdGet8 (PcdMaxPeiPerformanceLogEntries); - PeiPerformanceLog = BuildGuidHob (&gPeiPerformanceHobGuid, PeiPerformanceLogSize); + PeiPerformanceLog = BuildGuidHob (&gPerformanceProtocolGuid, PeiPerformanceLogSize); PeiPerformanceLog = ZeroMem (PeiPerformanceLog, PeiPerformanceLogSize); } @@ -85,6 +85,8 @@ InternalGetPerformanceHobLog ( and its end time stamp is zero, then the index of that log entry is returned; otherwise, the the number of log entries in the array is returned. + @param PeiPerformanceLog Pointer to the data structure containing PEI + performance data. @param Handle Pointer to environment specific context used to identify the component being measured. @param Token Pointer to a Null-terminated ASCII string