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.web10.9553.1685111713765396407 for ; Fri, 26 May 2023 07:35:14 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=YEJaZXOE; 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=1685111713; x=1716647713; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=V/lZOgi13YUdvh9t4mS+Zxt1L/wF1N2ZFfYnGV8zbRw=; b=YEJaZXOE8aUVvcNv4KwFMcvGI49LDKto8gnX77EHdQsjkNDw9gDwZ81G M3O+L20ODKC0u+s2Fjq9P3pe58YWezdBOvVYDX6nQ5ueBkEZAQUrdG66T faLQOd2eI6xukU/XAuFRYLGXo1ROUfjjrSfiPmF5jcVd9JHFdnL6zrZpf Y6e1KqZHPOB0miPP3S1H9dog7PxeJJ9IDh8WyotVGpQFtnpkzZt76hrvC ctCR/CALY2MlrbqZtGyEbCGQvnn9+3q3Tnmd12YleDDq449eIU/b8u2AB nRfVEtuQNU0i3YKGqUz0lznyM/6CW69G6momSypCMoCwvVikc042kOE2I w==; X-IronPort-AV: E=McAfee;i="6600,9927,10722"; a="333838581" X-IronPort-AV: E=Sophos;i="6.00,194,1681196400"; d="scan'208";a="333838581" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 May 2023 07:34:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10722"; a="770361030" X-IronPort-AV: E=Sophos;i="6.00,194,1681196400"; d="scan'208";a="770361030" Received: from shwdeopenlab706.ccr.corp.intel.com ([10.239.55.95]) by fmsmga008.fm.intel.com with ESMTP; 26 May 2023 07:34:34 -0700 From: "Ni, Ray" To: devel@edk2.groups.io Subject: [PATCH 0/3] Enable perf-logging in SMM environment Date: Fri, 26 May 2023 22:34:28 +0800 Message-Id: <20230526143431.2100-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 (3): 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/Core/PiSmmCore/PiSmmCore.c | 14 ++- MdeModulePkg/Core/PiSmmCore/Smi.c | 6 ++ 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 +- 10 files changed, 284 insertions(+), 6 deletions(-) create mode 100644 UefiCpuPkg/PiSmmCpuDxeSmm/SmmMpPerf.c create mode 100644 UefiCpuPkg/PiSmmCpuDxeSmm/SmmMpPerf.h -- 2.39.1.windows.1