mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-30 17:14:07 +02:00
Compare DXE performance token name by DXE performance string length.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11077 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
cda10fe42c
commit
77fafe9890
@ -10,7 +10,7 @@
|
|||||||
This library is mainly used by DxeCore to start performance logging to ensure that
|
This library is mainly used by DxeCore to start performance logging to ensure that
|
||||||
Performance Protocol is installed at the very beginning of DXE phase.
|
Performance Protocol is installed at the very beginning of DXE phase.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -92,8 +92,8 @@ InternalSearchForGaugeEntry (
|
|||||||
|
|
||||||
for (Index = 0; Index < NumberOfEntries; Index++) {
|
for (Index = 0; Index < NumberOfEntries; Index++) {
|
||||||
if ((GaugeEntryArray[Index].Handle == (EFI_PHYSICAL_ADDRESS) (UINTN) Handle) &&
|
if ((GaugeEntryArray[Index].Handle == (EFI_PHYSICAL_ADDRESS) (UINTN) Handle) &&
|
||||||
AsciiStrnCmp (GaugeEntryArray[Index].Token, Token, PEI_PERFORMANCE_STRING_LENGTH) == 0 &&
|
AsciiStrnCmp (GaugeEntryArray[Index].Token, Token, DXE_PERFORMANCE_STRING_LENGTH) == 0 &&
|
||||||
AsciiStrnCmp (GaugeEntryArray[Index].Module, Module, PEI_PERFORMANCE_STRING_LENGTH) == 0 &&
|
AsciiStrnCmp (GaugeEntryArray[Index].Module, Module, DXE_PERFORMANCE_STRING_LENGTH) == 0 &&
|
||||||
GaugeEntryArray[Index].EndTimeStamp == 0
|
GaugeEntryArray[Index].EndTimeStamp == 0
|
||||||
) {
|
) {
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user