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:
jljusten 2010-09-29 15:49:20 +00:00
parent a41b5272cd
commit 16d5d16832
3 changed files with 7 additions and 7 deletions

View File

@ -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;

View File

@ -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,

View File

@ -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
);
}