Enhance the PeiPerformanceLib to install the Performance
Measurement PPI.

Add a new "thin" PerformanceLib instance
PeiPerformancePpiLib which will locate a
Performance measurement Ppi to log performance data.

Platform can link the "thin" PeiPerformancePpiLib
to log the performance data for PEIMs.
It also can link the PeiPerformanceLib in PEI phase
to keep the compatibility.

Cc: Dmitry Antipov <dma...@microsoft.com>
Cc: Michael D Kinney <michael.d.kin...@intel.com>
Cc: Liming Gao <liming....@intel.com>
Cc: Star Zeng <star.z...@intel.com>

Dandan Bi (3):
  MdeModulePkg: Add the definition of performance measurement PPI
  MdeModulePkg/PeiPerformanceLib: Produce the new PerformancePpi
  MdeModulePkg/PeiPerformancePpiLib: Add PeiPerformancePpiLib

 MdeModulePkg/Include/Guid/PerformanceMeasurement.h |  14 +
 .../Library/PeiPerformanceLib/PeiPerformanceLib.c  |  81 ++++
 .../PeiPerformanceLib/PeiPerformanceLib.inf        |   1 +
 .../PeiPerformancePpiLib/PeiPerformancePpiLib.c    | 420 +++++++++++++++++++++
 .../PeiPerformancePpiLib/PeiPerformancePpiLib.inf  |  49 +++
 .../PeiPerformancePpiLib/PeiPerformancePpiLib.uni  |  23 ++
 MdeModulePkg/MdeModulePkg.dec                      |   1 +
 MdeModulePkg/MdeModulePkg.dsc                      |   1 +
 8 files changed, 590 insertions(+)
 create mode 100644 
MdeModulePkg/Library/PeiPerformancePpiLib/PeiPerformancePpiLib.c
 create mode 100644 
MdeModulePkg/Library/PeiPerformancePpiLib/PeiPerformancePpiLib.inf
 create mode 100644 
MdeModulePkg/Library/PeiPerformancePpiLib/PeiPerformancePpiLib.uni

-- 
2.14.3.windows.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to