From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mx.groups.io with SMTP id smtpd.web11.11830.1685532887032383064 for ; Wed, 31 May 2023 04:34:47 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=a+VHvnnq; spf=pass (domain: intel.com, ip: 192.55.52.136, mailfrom: ray.ni@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685532887; x=1717068887; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=Mwdjrq0rR5WuqVBblA5LpKZVa5BsczJW4DmvhWxHCoo=; b=a+VHvnnqm+/N2Du74uiPMHeDdARahjDJjAE6/kxyXcoozAr9D946UUeT Ou5YEOAmQwTIBr34ltbuh86BawffFW4DVf7i79ETsHde6BhXnWNyiyVYL Kxtv00qkzPd3OjzfuVK5P87vs6jvDB+9J2SLL9O3fRQgNETc7O9uPCZyG FadYk6vDop6/VMYN+wFYgIcoCjDeUNi8evRWNMPV9iGSHLUavWXYUola+ MNij36rRfwpxBuVeOtt6a4RQkZhl3XKPO5ud3WxfsMATR7C7E/zv2zq6v w6j9AbFH54ig34vYGjF+gEYj+yRZJF8BcEbqvDSHouwuhZwkQJf94aezX A==; X-IronPort-AV: E=McAfee;i="6600,9927,10726"; a="334830224" X-IronPort-AV: E=Sophos;i="6.00,207,1681196400"; d="scan'208";a="334830224" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2023 04:34:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10726"; a="739921465" X-IronPort-AV: E=Sophos;i="6.00,207,1681196400"; d="scan'208";a="739921465" Received: from shwdeopenlab706.ccr.corp.intel.com ([10.239.55.95]) by orsmga001.jf.intel.com with ESMTP; 31 May 2023 04:34:45 -0700 From: "Ni, Ray" To: devel@edk2.groups.io Subject: [PATCH V2 0/6] Enable perf-logging in SMM environment Date: Wed, 31 May 2023 19:34:32 +0800 Message-Id: <20230531113438.1797-1-ray.ni@intel.com> X-Mailer: git-send-email 2.39.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Ray Ni (6): UefiCpuPkg/CpuSmm: Add perf-logging for time-consuming BSP procedures UefiCpuPkg/CpuSmm: Add perf-logging for MP procedures MdeModulePkg/SmmCore: Add perf-logging for time-consuming procedures MdeModulePkg/SmmCore: Add perf-logging for SmmDriverDispatchHandler MdeModulePkg/SmmPerformanceLib: Disable perf-logging after ExitBS MdeModulePkg/SmmCorePerformanceLib: Disable perf-logging at runtime MdeModulePkg/Core/PiSmmCore/Dispatcher.c | 5 +- MdeModulePkg/Core/PiSmmCore/PiSmmCore.c | 14 ++- MdeModulePkg/Core/PiSmmCore/Smi.c | 6 ++ .../SmmCorePerformanceLib.c | 48 +++++++++- .../SmmCorePerformanceLib.inf | 3 +- .../SmmPerformanceLib/SmmPerformanceLib.c | 63 ++++++++++++- .../SmmPerformanceLib/SmmPerformanceLib.inf | 4 + UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c | 42 ++++++++- UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c | 38 ++++++++ UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h | 2 + UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf | 3 + .../PiSmmCpuDxeSmm/SmmCpuMemoryManagement.c | 13 ++- UefiCpuPkg/PiSmmCpuDxeSmm/SmmMpPerf.c | 91 +++++++++++++++++++ UefiCpuPkg/PiSmmCpuDxeSmm/SmmMpPerf.h | 77 ++++++++++++++++ UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c | 4 +- 15 files changed, 402 insertions(+), 11 deletions(-) create mode 100644 UefiCpuPkg/PiSmmCpuDxeSmm/SmmMpPerf.c create mode 100644 UefiCpuPkg/PiSmmCpuDxeSmm/SmmMpPerf.h -- 2.39.1.windows.1