diff options
-rw-r--r-- | PerformancePkg/Dp_App/Dp.h | 6 | ||||
-rw-r--r-- | PerformancePkg/Dp_App/DpTrace.c | 2 | ||||
-rw-r--r-- | PerformancePkg/Dp_App/DpUtilities.c | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/PerformancePkg/Dp_App/Dp.h b/PerformancePkg/Dp_App/Dp.h index e4c5a76d41..072ae1b983 100644 --- a/PerformancePkg/Dp_App/Dp.h +++ b/PerformancePkg/Dp_App/Dp.h @@ -76,9 +76,9 @@ typedef struct { } PERF_SUMMARY_DATA;
typedef struct {
- VOID *Handle;
- CHAR8 *Token; ///< Measured token string name.
- CHAR8 *Module; ///< Module string name.
+ CONST VOID *Handle;
+ CONST CHAR8 *Token; ///< Measured token string name.
+ CONST CHAR8 *Module; ///< Module string name.
UINT64 StartTimeStamp; ///< Start time point.
UINT64 EndTimeStamp; ///< End time point.
} MEASUREMENT_RECORD;
diff --git a/PerformancePkg/Dp_App/DpTrace.c b/PerformancePkg/Dp_App/DpTrace.c index 77939c596e..593c269f72 100644 --- a/PerformancePkg/Dp_App/DpTrace.c +++ b/PerformancePkg/Dp_App/DpTrace.c @@ -568,7 +568,7 @@ ProcessPeims( Duration = GetDuration (&Measurement);
ElapsedTime = DurationInMicroSeconds ( Duration ); // Calculate elapsed time in microseconds
if (ElapsedTime >= mInterestThreshold) {
- GetNameFromHandle (Measurement.Handle); // Name placed in mGaugeString
+ GetNameFromHandle ((EFI_HANDLE) Measurement.Handle); // Name placed in mGaugeString
PrintToken (STRING_TOKEN (STR_DP_PEIM_STAT2),
TIndex, // 1 based, Which measurement record is being printed
Measurement.Handle,
diff --git a/PerformancePkg/Dp_App/DpUtilities.c b/PerformancePkg/Dp_App/DpUtilities.c index dbb268a21c..1d48e1430a 100644 --- a/PerformancePkg/Dp_App/DpUtilities.c +++ b/PerformancePkg/Dp_App/DpUtilities.c @@ -23,7 +23,7 @@ #include <Library/PcdLib.h>
#include <Protocol/LoadedImage.h>
-#include <Protocol/Driverbinding.h>
+#include <Protocol/DriverBinding.h>
#include <Guid/Performance.h>
@@ -191,7 +191,7 @@ GetNameFromHandle ( Status = gBS->HandleProtocol (
Handle,
&gEfiLoadedImageProtocolGuid,
- &Image
+ (VOID**) &Image
);
if (EFI_ERROR (Status)) {
@@ -213,7 +213,7 @@ GetNameFromHandle ( Status = gBS->HandleProtocol (
DriverBinding->ImageHandle,
&gEfiLoadedImageProtocolGuid,
- &Image
+ (VOID**) &Image
);
}
|