mirror of https://github.com/acidanthera/audk.git
PerformancePkg: Fix build with GCC
Fix compiler warnings and include filename issue. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10902 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
a41b5272cd
commit
16d5d16832
|
@ -76,9 +76,9 @@ typedef struct {
|
||||||
} PERF_SUMMARY_DATA;
|
} PERF_SUMMARY_DATA;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
VOID *Handle;
|
CONST VOID *Handle;
|
||||||
CHAR8 *Token; ///< Measured token string name.
|
CONST CHAR8 *Token; ///< Measured token string name.
|
||||||
CHAR8 *Module; ///< Module string name.
|
CONST CHAR8 *Module; ///< Module string name.
|
||||||
UINT64 StartTimeStamp; ///< Start time point.
|
UINT64 StartTimeStamp; ///< Start time point.
|
||||||
UINT64 EndTimeStamp; ///< End time point.
|
UINT64 EndTimeStamp; ///< End time point.
|
||||||
} MEASUREMENT_RECORD;
|
} MEASUREMENT_RECORD;
|
||||||
|
|
|
@ -568,7 +568,7 @@ ProcessPeims(
|
||||||
Duration = GetDuration (&Measurement);
|
Duration = GetDuration (&Measurement);
|
||||||
ElapsedTime = DurationInMicroSeconds ( Duration ); // Calculate elapsed time in microseconds
|
ElapsedTime = DurationInMicroSeconds ( Duration ); // Calculate elapsed time in microseconds
|
||||||
if (ElapsedTime >= mInterestThreshold) {
|
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),
|
PrintToken (STRING_TOKEN (STR_DP_PEIM_STAT2),
|
||||||
TIndex, // 1 based, Which measurement record is being printed
|
TIndex, // 1 based, Which measurement record is being printed
|
||||||
Measurement.Handle,
|
Measurement.Handle,
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
#include <Library/PcdLib.h>
|
#include <Library/PcdLib.h>
|
||||||
|
|
||||||
#include <Protocol/LoadedImage.h>
|
#include <Protocol/LoadedImage.h>
|
||||||
#include <Protocol/Driverbinding.h>
|
#include <Protocol/DriverBinding.h>
|
||||||
|
|
||||||
#include <Guid/Performance.h>
|
#include <Guid/Performance.h>
|
||||||
|
|
||||||
|
@ -191,7 +191,7 @@ GetNameFromHandle (
|
||||||
Status = gBS->HandleProtocol (
|
Status = gBS->HandleProtocol (
|
||||||
Handle,
|
Handle,
|
||||||
&gEfiLoadedImageProtocolGuid,
|
&gEfiLoadedImageProtocolGuid,
|
||||||
&Image
|
(VOID**) &Image
|
||||||
);
|
);
|
||||||
|
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
|
@ -213,7 +213,7 @@ GetNameFromHandle (
|
||||||
Status = gBS->HandleProtocol (
|
Status = gBS->HandleProtocol (
|
||||||
DriverBinding->ImageHandle,
|
DriverBinding->ImageHandle,
|
||||||
&gEfiLoadedImageProtocolGuid,
|
&gEfiLoadedImageProtocolGuid,
|
||||||
&Image
|
(VOID**) &Image
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue