]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c
Import Usb/UsbBusDxe and Usb/UsbMassStorageDxe into MdeModulePkg.
[mirror_edk2.git] / EdkModulePkg / Library / DxeCorePerformanceLib / DxeCorePerformanceLib.c
index 64c7454c662631a9b97282493bbab4a0d9849542..727133226c74b38f1683302217abed3efd3ec29c 100644 (file)
@@ -45,6 +45,7 @@ Abstract:
   @retval EFI_OUT_OF_RESOURCES    There are not enough resources to record the measurement.\r
 \r
 **/\r
+STATIC\r
 EFI_STATUS\r
 EFIAPI\r
 StartGauge (\r
@@ -78,6 +79,7 @@ StartGauge (
   @retval EFI_NOT_FOUND           The specified measurement record could not be found.\r
 \r
 **/\r
+STATIC\r
 EFI_STATUS\r
 EFIAPI\r
 EndGauge (\r
@@ -105,6 +107,7 @@ EndGauge (
   @retval EFI_INVALIDE_PARAMETER  GaugeDataEntry is NULL. \r
 \r
 **/\r
+STATIC\r
 EFI_STATUS\r
 EFIAPI\r
 GetGauge (\r
@@ -144,6 +147,7 @@ PERFORMANCE_PROTOCOL mPerformanceInterface = {
   @retval The index of gauge entry in the array.\r
 \r
 **/\r
+STATIC\r
 UINT32\r
 InternalSearchForGaugeEntry (\r
   IN CONST VOID                 *Handle,  OPTIONAL\r
@@ -201,6 +205,7 @@ InternalSearchForGaugeEntry (
   @retval EFI_OUT_OF_RESOURCES    There are not enough resources to record the measurement.\r
 \r
 **/\r
+STATIC\r
 EFI_STATUS\r
 EFIAPI\r
 StartGauge (\r
@@ -283,6 +288,7 @@ StartGauge (
   @retval EFI_NOT_FOUND           The specified measurement record could not be found.\r
 \r
 **/\r
+STATIC\r
 EFI_STATUS\r
 EFIAPI\r
 EndGauge (\r
@@ -327,6 +333,7 @@ EndGauge (
   @retval EFI_INVALIDE_PARAMETER  GaugeDataEntry is NULL. \r
 \r
 **/\r
+STATIC\r
 EFI_STATUS\r
 EFIAPI\r
 GetGauge (\r
@@ -363,6 +370,7 @@ GetGauge (
   to DXE performance data structures.\r
 \r
 **/\r
+STATIC\r
 VOID\r
 InternalGetPeiPerformance (\r
   VOID\r
@@ -438,7 +446,7 @@ DxeCorePerformanceLibConstructor (
                   );\r
   ASSERT_EFI_ERROR (Status);\r
 \r
-  mMaxGaugeRecords = INIT_DXE_GAUGE_DATA_ENTRIES + MAX_PEI_PERFORMANCE_LOG_ENTRIES;\r
+  mMaxGaugeRecords = INIT_DXE_GAUGE_DATA_ENTRIES + PcdGet8 (PcdMaxPeiPerformanceLogEntries);\r
 \r
   mGaugeData = AllocateZeroPool (sizeof (GAUGE_DATA_HEADER) + (sizeof (GAUGE_DATA_ENTRY) * mMaxGaugeRecords));\r
   ASSERT (mGaugeData != NULL);\r
@@ -625,5 +633,5 @@ PerformanceMeasurementEnabled (
   VOID\r
   )\r
 {\r
-  return ((PcdGet8(PcdPerformanceLibraryPropertyMask) & PERFORMANCE_LIBRARY_PROPERTY_MEASUREMENT_ENABLED) != 0);\r
+  return (BOOLEAN) ((PcdGet8(PcdPerformanceLibraryPropertyMask) & PERFORMANCE_LIBRARY_PROPERTY_MEASUREMENT_ENABLED) != 0);\r
 }\r