X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=EdkModulePkg%2FLibrary%2FDxeCorePerformanceLib%2FDxeCorePerformanceLib.c;h=727133226c74b38f1683302217abed3efd3ec29c;hb=e237e7ae9fc23f32a25040d49cc9a16f2a7f3b4c;hp=64c7454c662631a9b97282493bbab4a0d9849542;hpb=b187ce9f15c2018d3ee837b873e38eacd331d5c7;p=mirror_edk2.git diff --git a/EdkModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c b/EdkModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c index 64c7454c66..727133226c 100644 --- a/EdkModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c +++ b/EdkModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c @@ -45,6 +45,7 @@ Abstract: @retval EFI_OUT_OF_RESOURCES There are not enough resources to record the measurement. **/ +STATIC EFI_STATUS EFIAPI StartGauge ( @@ -78,6 +79,7 @@ StartGauge ( @retval EFI_NOT_FOUND The specified measurement record could not be found. **/ +STATIC EFI_STATUS EFIAPI EndGauge ( @@ -105,6 +107,7 @@ EndGauge ( @retval EFI_INVALIDE_PARAMETER GaugeDataEntry is NULL. **/ +STATIC EFI_STATUS EFIAPI GetGauge ( @@ -144,6 +147,7 @@ PERFORMANCE_PROTOCOL mPerformanceInterface = { @retval The index of gauge entry in the array. **/ +STATIC UINT32 InternalSearchForGaugeEntry ( IN CONST VOID *Handle, OPTIONAL @@ -201,6 +205,7 @@ InternalSearchForGaugeEntry ( @retval EFI_OUT_OF_RESOURCES There are not enough resources to record the measurement. **/ +STATIC EFI_STATUS EFIAPI StartGauge ( @@ -283,6 +288,7 @@ StartGauge ( @retval EFI_NOT_FOUND The specified measurement record could not be found. **/ +STATIC EFI_STATUS EFIAPI EndGauge ( @@ -327,6 +333,7 @@ EndGauge ( @retval EFI_INVALIDE_PARAMETER GaugeDataEntry is NULL. **/ +STATIC EFI_STATUS EFIAPI GetGauge ( @@ -363,6 +370,7 @@ GetGauge ( to DXE performance data structures. **/ +STATIC VOID InternalGetPeiPerformance ( VOID @@ -438,7 +446,7 @@ DxeCorePerformanceLibConstructor ( ); ASSERT_EFI_ERROR (Status); - mMaxGaugeRecords = INIT_DXE_GAUGE_DATA_ENTRIES + MAX_PEI_PERFORMANCE_LOG_ENTRIES; + mMaxGaugeRecords = INIT_DXE_GAUGE_DATA_ENTRIES + PcdGet8 (PcdMaxPeiPerformanceLogEntries); mGaugeData = AllocateZeroPool (sizeof (GAUGE_DATA_HEADER) + (sizeof (GAUGE_DATA_ENTRY) * mMaxGaugeRecords)); ASSERT (mGaugeData != NULL); @@ -625,5 +633,5 @@ PerformanceMeasurementEnabled ( VOID ) { - return ((PcdGet8(PcdPerformanceLibraryPropertyMask) & PERFORMANCE_LIBRARY_PROPERTY_MEASUREMENT_ENABLED) != 0); + return (BOOLEAN) ((PcdGet8(PcdPerformanceLibraryPropertyMask) & PERFORMANCE_LIBRARY_PROPERTY_MEASUREMENT_ENABLED) != 0); }