From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.115; helo=mga14.intel.com; envelope-from=dandan.bi@intel.com; receiver=edk2-devel@lists.01.org Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 8D5B821B02845 for ; Sun, 29 Jul 2018 23:59:24 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Jul 2018 23:59:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,421,1526367600"; d="scan'208";a="60863762" Received: from shwdeopenpsi114.ccr.corp.intel.com ([10.239.157.135]) by orsmga008.jf.intel.com with ESMTP; 29 Jul 2018 23:59:22 -0700 From: Dandan Bi To: edk2-devel@lists.01.org Cc: Dmitry Antipov , Michael D Kinney , Liming Gao , Star Zeng Date: Mon, 30 Jul 2018 14:59:02 +0800 Message-Id: <20180730065905.9152-1-dandan.bi@intel.com> X-Mailer: git-send-email 2.14.3.windows.1 Subject: [patch 0/3] Add PeiPerformancePpiLib X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jul 2018 06:59:24 -0000 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 Cc: Michael D Kinney Cc: Liming Gao Cc: Star Zeng 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