From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web09.594.1574385668745132723 for ; Thu, 21 Nov 2019 17:21:08 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.115, mailfrom: madhura.deshpande@intel.com) 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; 21 Nov 2019 17:21:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,228,1571727600"; d="scan'208";a="201336970" Received: from fm73lab143.amr.corp.intel.com ([10.3.79.150]) by orsmga008.jf.intel.com with ESMTP; 21 Nov 2019 17:21:08 -0800 From: Deshpande To: devel@edk2.groups.io Subject: [PATCH] Edk2\MdeModulePkg: Adding Perf macros to reduce the gaps in Perf logs Date: Thu, 21 Nov 2019 17:21:05 -0800 Message-Id: <20191122012105.14028-1-madhura.deshpande@intel.com> X-Mailer: git-send-email 2.16.2.windows.1 Updated Edk2\MdeModulePkg\Core\DxeIplPeim\DxeLoad.c file to add perf macros. Change-Id: I84cc5ec34fbd1e52cec983a86aa7f12b73f67625 Signed-off-by: Deshpande --- MdeModulePkg/Core/DxeIplPeim/DxeLoad.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MdeModulePkg/Core/DxeIplPeim/DxeLoad.c b/MdeModulePkg/Core/DxeIplPeim/DxeLoad.c index d48028cea0..a679c68515 100644 --- a/MdeModulePkg/Core/DxeIplPeim/DxeLoad.c +++ b/MdeModulePkg/Core/DxeIplPeim/DxeLoad.c @@ -622,12 +622,17 @@ CustomGuidedSectionExtract ( DEBUG ((DEBUG_INFO, "Customized Guided section Memory Size required is 0x%x and address is 0x%p\n", OutputBufferSize, *OutputBuffer)); } + PERF_INMODULE_BEGIN ("ExtractGuidedSectionDecode"); + Status = ExtractGuidedSectionDecode ( InputSection, OutputBuffer, ScratchBuffer, AuthenticationStatus ); + + PERF_INMODULE_END ("ExtractGuidedSectionDecode"); + if (EFI_ERROR (Status)) { // // Decode failed -- 2.16.2.windows.1