mirror of https://github.com/acidanthera/audk.git
Update Performance library instances to adapt to the update in Performance infrastructure.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7569 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
3f57706fa9
commit
ee0961f723
|
@ -306,7 +306,7 @@ InternalGetPeiPerformance (
|
||||||
//
|
//
|
||||||
// Dump PEI Log Entries to DXE Guage Data structure.
|
// Dump PEI Log Entries to DXE Guage Data structure.
|
||||||
//
|
//
|
||||||
GuidHob = GetFirstGuidHob (&gPeiPerformanceHobGuid);
|
GuidHob = GetFirstGuidHob (&gPerformanceProtocolGuid);
|
||||||
if (GuidHob != NULL) {
|
if (GuidHob != NULL) {
|
||||||
LogHob = GET_GUID_HOB_DATA (GuidHob);
|
LogHob = GET_GUID_HOB_DATA (GuidHob);
|
||||||
LogEntryArray = (PEI_PERFORMANCE_LOG_ENTRY *) (LogHob + 1);
|
LogEntryArray = (PEI_PERFORMANCE_LOG_ENTRY *) (LogHob + 1);
|
||||||
|
|
|
@ -57,11 +57,8 @@
|
||||||
|
|
||||||
|
|
||||||
[Guids]
|
[Guids]
|
||||||
gPeiPerformanceHobGuid ## CONSUMES ## HOB
|
gPerformanceProtocolGuid ## CONSUMES ## HOB
|
||||||
|
gPerformanceProtocolGuid ## PRODUCES ## PROTOCOL
|
||||||
|
|
||||||
[Protocols]
|
|
||||||
gPerformanceProtocolGuid # PRODUCES
|
|
||||||
|
|
||||||
[Pcd.common]
|
[Pcd.common]
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxPeiPerformanceLogEntries
|
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxPeiPerformanceLogEntries
|
||||||
|
|
|
@ -21,8 +21,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
#include <PiDxe.h>
|
#include <PiDxe.h>
|
||||||
|
|
||||||
#include <Protocol/Performance.h>
|
#include <Guid/Performance.h>
|
||||||
#include <Guid/PeiPerformanceHob.h>
|
|
||||||
|
|
||||||
#include <Library/PerformanceLib.h>
|
#include <Library/PerformanceLib.h>
|
||||||
#include <Library/DebugLib.h>
|
#include <Library/DebugLib.h>
|
||||||
|
|
|
@ -20,7 +20,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
#include <PiDxe.h>
|
#include <PiDxe.h>
|
||||||
|
|
||||||
#include <Protocol/Performance.h>
|
#include <Guid/Performance.h>
|
||||||
|
|
||||||
#include <Library/PerformanceLib.h>
|
#include <Library/PerformanceLib.h>
|
||||||
#include <Library/DebugLib.h>
|
#include <Library/DebugLib.h>
|
||||||
|
|
|
@ -46,8 +46,8 @@
|
||||||
DebugLib
|
DebugLib
|
||||||
|
|
||||||
|
|
||||||
[Protocols]
|
[Guids]
|
||||||
gPerformanceProtocolGuid ## CONSUMES
|
gPerformanceProtocolGuid ## CONSUMES ## PROTOCOL
|
||||||
|
|
||||||
|
|
||||||
[Pcd.common]
|
[Pcd.common]
|
||||||
|
|
|
@ -20,7 +20,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
#include <PiPei.h>
|
#include <PiPei.h>
|
||||||
|
|
||||||
#include <Guid/PeiPerformanceHob.h>
|
#include <Guid/Performance.h>
|
||||||
|
|
||||||
#include <Library/PerformanceLib.h>
|
#include <Library/PerformanceLib.h>
|
||||||
#include <Library/DebugLib.h>
|
#include <Library/DebugLib.h>
|
||||||
|
@ -57,7 +57,7 @@ InternalGetPerformanceHobLog (
|
||||||
PEI_PERFORMANCE_LOG_HEADER *PeiPerformanceLog;
|
PEI_PERFORMANCE_LOG_HEADER *PeiPerformanceLog;
|
||||||
UINTN PeiPerformanceLogSize;
|
UINTN PeiPerformanceLogSize;
|
||||||
|
|
||||||
GuidHob = GetFirstGuidHob (&gPeiPerformanceHobGuid);
|
GuidHob = GetFirstGuidHob (&gPerformanceProtocolGuid);
|
||||||
|
|
||||||
if (GuidHob != NULL) {
|
if (GuidHob != NULL) {
|
||||||
//
|
//
|
||||||
|
@ -70,7 +70,7 @@ InternalGetPerformanceHobLog (
|
||||||
//
|
//
|
||||||
PeiPerformanceLogSize = sizeof (PEI_PERFORMANCE_LOG_HEADER) +
|
PeiPerformanceLogSize = sizeof (PEI_PERFORMANCE_LOG_HEADER) +
|
||||||
sizeof (PEI_PERFORMANCE_LOG_ENTRY) * PcdGet8 (PcdMaxPeiPerformanceLogEntries);
|
sizeof (PEI_PERFORMANCE_LOG_ENTRY) * PcdGet8 (PcdMaxPeiPerformanceLogEntries);
|
||||||
PeiPerformanceLog = BuildGuidHob (&gPeiPerformanceHobGuid, PeiPerformanceLogSize);
|
PeiPerformanceLog = BuildGuidHob (&gPerformanceProtocolGuid, PeiPerformanceLogSize);
|
||||||
PeiPerformanceLog = ZeroMem (PeiPerformanceLog, PeiPerformanceLogSize);
|
PeiPerformanceLog = ZeroMem (PeiPerformanceLog, PeiPerformanceLogSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
|
|
||||||
|
|
||||||
[Guids]
|
[Guids]
|
||||||
gPeiPerformanceHobGuid ## HOB
|
gPerformanceProtocolGuid ## HOB
|
||||||
|
|
||||||
[Pcd.common]
|
[Pcd.common]
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxPeiPerformanceLogEntries
|
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxPeiPerformanceLogEntries
|
||||||
|
|
Loading…
Reference in New Issue