REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2957 1. Allocate performance data table at EndOfDxe and then lock the varible which store the table address at EndOfDxe. 2. Enlarge PCD gEfiMdeModulePkgTokenSpaceGuid.PcdExtFpdtBootRecordPadSize from 0x20000 to 0x30000 in order to hold the Delta performance data between EndOfDxe and ReadyToBoot. 3. SMM performance data is collected by DXE modules through SMM communication at ReadyToBoot before. Now to do SMM communication twice, one for allocating the performance size at EndOfDxe, another is at ReadyToBoot to get SMM performance data. 4. Make SmmCorePerformanceLib rather than FirmwarePerformanceSmm to communicate with DxeCorePerformanceLib for SMM performance data and size. Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Hao A Wu <hao.a.wu@intel.com> Cc: Jian J Wang <jian.j.wang@intel.com> Signed-off-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
65 lines
1.8 KiB
INI
65 lines
1.8 KiB
INI
## @file
|
|
# This module collects performance data for SMM driver boot records and S3 Suspend Performance Record.
|
|
#
|
|
# This module registers report status code listener to collect performance data
|
|
# for SMM boot performance records and S3 Suspend Performance Record.
|
|
#
|
|
# Copyright (c) 2011 - 2021, Intel Corporation. All rights reserved.<BR>
|
|
# Copyright (c) Microsoft Corporation.
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
#
|
|
##
|
|
|
|
[Defines]
|
|
INF_VERSION = 0x00010005
|
|
BASE_NAME = FirmwarePerformanceStandaloneMm
|
|
FILE_GUID = 827AC29D-E52D-4B1A-874A-C6577E0699CF
|
|
MODULE_TYPE = MM_STANDALONE
|
|
VERSION_STRING = 1.0
|
|
PI_SPECIFICATION_VERSION = 0x00010032
|
|
ENTRY_POINT = FirmwarePerformanceStandaloneMmEntryPoint
|
|
|
|
#
|
|
# The following information is for reference only and not required by the build tools.
|
|
#
|
|
# VALID_ARCHITECTURES = IA32 X64
|
|
#
|
|
|
|
[Sources]
|
|
FirmwarePerformanceCommon.c
|
|
FirmwarePerformanceCommon.h
|
|
FirmwarePerformanceStandaloneMm.c
|
|
|
|
[Packages]
|
|
MdePkg/MdePkg.dec
|
|
MdeModulePkg/MdeModulePkg.dec
|
|
StandaloneMmPkg/StandaloneMmPkg.dec
|
|
|
|
[LibraryClasses]
|
|
StandaloneMmDriverEntryPoint
|
|
MmServicesTableLib
|
|
BaseLib
|
|
DebugLib
|
|
TimerLib
|
|
LockBoxLib
|
|
PcdLib
|
|
BaseMemoryLib
|
|
MemoryAllocationLib
|
|
SynchronizationLib
|
|
MemLib
|
|
|
|
[Protocols]
|
|
gEfiMmRscHandlerProtocolGuid ## CONSUMES
|
|
|
|
[Guids]
|
|
## SOMETIMES_PRODUCES ## UNDEFINED # SaveLockBox
|
|
## SOMETIMES_CONSUMES ## UNDEFINED # StatusCode Data
|
|
gEfiFirmwarePerformanceGuid
|
|
|
|
[Pcd]
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdProgressCodeS3SuspendStart ## CONSUMES
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdProgressCodeS3SuspendEnd ## CONSUMES
|
|
|
|
[Depex]
|
|
gEfiMmRscHandlerProtocolGuid
|