From nobody Tue Feb 10 19:14:39 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+106046+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+106046+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1686636821; cv=none; d=zohomail.com; s=zohoarc; b=ngtpyhIweDKn3VM3z5AMSFhIbb+rgTMa+6ECnudoaDIBQt7CMEIBT+MeJ3RIgC3Dd8NUUVWesPbNxDUwKtvOvssCtrCc4V14mhSay6R/0oC3Jp/uGxen9zi8KuRCos/yduZQkfY5NNN6z4KY+CNgyjn53pmubkxn4TWYm/bCG18= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1686636821; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=9NGtWBbpi7Z1AQ0dBDP9vLH+7+32hI2wpyg/khjWSKY=; b=WFzQs7Eu9QgizCZFg7twWdckIenL8UXppZAAf4pwWORLUcHQhJSOmXQjQmUaimaehLKicmTKNxyh7hf88Gt2ICl6VZLYD4S1MZVYLju+n5l9LsL2Wdkj4wpBJNftlDYiglOX33hG7JHJQq4hG2KQQLy7kX83XjjJchc40rtRaD8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+106046+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1686636821087633.8957424342882; Mon, 12 Jun 2023 23:13:41 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id K1AmYY1788612xsZTwXMQVrV; Mon, 12 Jun 2023 23:13:40 -0700 X-Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web10.7304.1686636811551339614 for ; Mon, 12 Jun 2023 23:13:40 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10739"; a="358238237" X-IronPort-AV: E=Sophos;i="6.00,238,1681196400"; d="scan'208";a="358238237" X-Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2023 23:13:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10739"; a="741306377" X-IronPort-AV: E=Sophos;i="6.00,238,1681196400"; d="scan'208";a="741306377" X-Received: from shwdeopenlab706.ccr.corp.intel.com ([10.239.55.95]) by orsmga008.jf.intel.com with ESMTP; 12 Jun 2023 23:13:38 -0700 From: "Ni, Ray" To: devel@edk2.groups.io Cc: Jian J Wang , Liming Gao , Jiaxin Wu , Eric Dong Subject: [edk2-devel] [PATCH V3 4/8] MdeModulePkg/SmmCore: Add perf-logging for SmmDriverDispatchHandler Date: Tue, 13 Jun 2023 14:13:21 +0800 Message-Id: <20230613061325.1664-5-ray.ni@intel.com> In-Reply-To: <20230613061325.1664-1-ray.ni@intel.com> References: <20230613061325.1664-1-ray.ni@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,ray.ni@intel.com X-Gm-Message-State: xiBNcd57FbdwHknxYx4RzLqyx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1686636820; bh=3ECl1vFyiBeInuyzafH2DtLLnxHBOyQEfRaauO9fH5Y=; h=Cc:Date:From:Reply-To:Subject:To; b=UPQEnZWO3Phhv7CAQnDgLBlEDl0KI05wGOCnMzNGiVlgLJdJY1vY3lgSbiiiJNPhke9 NWt0/3gy/Fvl+tqq8GexXCvs56Zh0LaCcOAZF44s8ajXykNH0oMMU4MIQ476AgrOOQIQN jelaUay0wHkd3H8Yv5BmiNkEFI2mlqLY8SU= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1686636821381100017 Content-Type: text/plain; charset="utf-8" SmmDriverDispatchHandler is the routine that dispatches SMM drivers from FV. It's a time-consuming routine. Add perf-logging for this routine. Signed-off-by: Ray Ni Cc: Jian J Wang Cc: Liming Gao Cc: Jiaxin Wu Reviewed-by: Jiaxin Wu Reviewed-by: Eric Dong Reviewed-by: Jian J Wang --- MdeModulePkg/Core/PiSmmCore/Dispatcher.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Core/PiSmmCore/Dispatcher.c b/MdeModulePkg/Core/P= iSmmCore/Dispatcher.c index f635565dd1..bb789e5890 100644 --- a/MdeModulePkg/Core/PiSmmCore/Dispatcher.c +++ b/MdeModulePkg/Core/PiSmmCore/Dispatcher.c @@ -28,7 +28,7 @@ Depex - Dependency Expression. =20 Copyright (c) 2014, Hewlett-Packard Development Company, L.P. - Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
+ Copyright (c) 2009 - 2023, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent =20 **/ @@ -1322,6 +1322,8 @@ SmmDriverDispatchHandler ( return EFI_NOT_FOUND; } =20 + PERF_CALLBACK_BEGIN (&gEfiEventDxeDispatchGuid); + for (HandleIndex =3D 0; HandleIndex < HandleCount; HandleIndex++) { FvHandle =3D HandleBuffer[HandleIndex]; =20 @@ -1511,6 +1513,7 @@ SmmDriverDispatchHandler ( } } =20 + PERF_CALLBACK_END (&gEfiEventDxeDispatchGuid); return EFI_SUCCESS; } =20 --=20 2.39.1.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#106046): https://edk2.groups.io/g/devel/message/106046 Mute This Topic: https://groups.io/mt/99500185/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/leave/3901457/1787277/102458076= /xyzzy [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-