Revision: 18714
http://sourceforge.net/p/edk2/code/18714
Author: lzeng14
Date: 2015-11-02 02:38:24 +0000 (Mon, 02 Nov 2015)
Log Message:
-----------
MdeModulePkg: Add DEBUG statement when reaching max perf log entries
Add a DEBUG statement when the number of PEI perf log entries
exceeds PcdMaxPeiPerformanceLogEntries
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Samer El-Haj-Mahmoud <[email protected]>
Reviewed-by: Star Zeng <[email protected]>
Modified Paths:
--------------
trunk/edk2/MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.c
Modified: trunk/edk2/MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.c
===================================================================
--- trunk/edk2/MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.c
2015-11-02 01:42:51 UTC (rev 18713)
+++ trunk/edk2/MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.c
2015-11-02 02:38:24 UTC (rev 18714)
@@ -7,6 +7,7 @@
number of performance logging entry is specified by
PcdMaxPeiPerformanceLogEntries.
Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
+(C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>
This program and the accompanying materials
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
@@ -183,6 +184,7 @@
InternalGetPerformanceHobLog (&PeiPerformanceLog, &PeiPerformanceIdArray);
if (PeiPerformanceLog->NumberOfEntries >= PcdGet8
(PcdMaxPeiPerformanceLogEntries)) {
+ DEBUG ((DEBUG_ERROR, "PEI performance log array out of resources\n"));
return RETURN_OUT_OF_RESOURCES;
}
Index = PeiPerformanceLog->NumberOfEntries++;
------------------------------------------------------------------------------
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits