V4:
Update the GUID for status code in DxeCorePerformanceLib and
FirmwarePerformanceDxe.
V3:Add handling for the case when performance feature is not enabled.
V2:
Update FirmwarePerformanceDxe to receive the address
of performance records instead of records content.
1. Remove the macro EXTENSION_RECORD_SIZE, since the extension
size can be got through PcdExtFpdtBootRecordPadSize.
2. Hook EFI_SW_DXE_BS_PC_READY_TO_BOOT_EVENT to install ACPI table
3. Copy SMM record accord to the allocated size
4. Receive Boot performance table address instead of
 contents which are reported DxeCorePerformanceLib.
Cc: Liming Gao <liming.gao@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
(cherry picked from commit 9e62c23017)
		
	
		
			
				
	
	
		
			92 lines
		
	
	
		
			3.5 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
			
		
		
	
	
			92 lines
		
	
	
		
			3.5 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
| ## @file
 | |
| #  This module installs ACPI Firmware Performance Data Table (FPDT).
 | |
| #
 | |
| #  This module registers report status code listener to collect performance data
 | |
| #  for Firmware Basic Boot Performance Record and other boot performance records, 
 | |
| #  and install FPDT to ACPI table.
 | |
| #
 | |
| #  Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
 | |
| #  This program and the accompanying materials
 | |
| #  are licensed and made available under the terms and conditions of the BSD License
 | |
| #  which accompanies this distribution.  The full text of the license may be found at
 | |
| #  http://opensource.org/licenses/bsd-license.php
 | |
| #  
 | |
| #  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
 | |
| #  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 | |
| #
 | |
| ##
 | |
| 
 | |
| [Defines]
 | |
|   INF_VERSION                    = 0x00010005
 | |
|   BASE_NAME                      = FirmwarePerformanceDxe
 | |
|   MODULE_UNI_FILE                = FirmwarePerformanceDxe.uni
 | |
|   FILE_GUID                      = 00160F8D-2B35-4df2-BBE0-B272A8D631F0
 | |
|   MODULE_TYPE                    = DXE_DRIVER
 | |
|   VERSION_STRING                 = 1.0
 | |
|   ENTRY_POINT                    = FirmwarePerformanceDxeEntryPoint
 | |
| 
 | |
| #
 | |
| # The following information is for reference only and not required by the build tools.
 | |
| #
 | |
| #  VALID_ARCHITECTURES           = IA32 X64 IPF EBC
 | |
| #
 | |
| 
 | |
| [Sources]
 | |
|   FirmwarePerformanceDxe.c
 | |
| 
 | |
| [Packages]
 | |
|   MdePkg/MdePkg.dec
 | |
|   MdeModulePkg/MdeModulePkg.dec
 | |
| 
 | |
| [LibraryClasses]
 | |
|   UefiDriverEntryPoint
 | |
|   UefiBootServicesTableLib
 | |
|   UefiRuntimeServicesTableLib
 | |
|   BaseLib
 | |
|   DebugLib
 | |
|   TimerLib
 | |
|   BaseMemoryLib
 | |
|   MemoryAllocationLib
 | |
|   PcdLib
 | |
|   HobLib
 | |
|   LockBoxLib
 | |
|   UefiLib
 | |
| 
 | |
| [Protocols]
 | |
|   gEfiAcpiTableProtocolGuid                     ## CONSUMES
 | |
|   gEfiRscHandlerProtocolGuid                    ## CONSUMES
 | |
|   gEfiVariableArchProtocolGuid                  ## CONSUMES
 | |
|   gEfiLockBoxProtocolGuid                       ## CONSUMES
 | |
| 
 | |
| [Guids]
 | |
|   gEfiEventExitBootServicesGuid                 ## CONSUMES             ## Event
 | |
|   gEfiEventReadyToBootGuid                      ## CONSUMES             ## Event
 | |
|   gEfiEventLegacyBootGuid                       ## SOMETIMES_CONSUMES   ## Event
 | |
|   ## SOMETIMES_CONSUMES   ## HOB
 | |
|   ## SOMETIMES_CONSUMES   ## Variable:L"FirmwarePerformance"
 | |
|   ## PRODUCES             ## Variable:L"FirmwarePerformance"
 | |
|   ## SOMETIMES_CONSUMES ## UNDEFINED # Used to do smm communication
 | |
|   ## SOMETIMES_CONSUMES ## UNDEFINED # StatusCode Data
 | |
|   gEfiFirmwarePerformanceGuid
 | |
|   gEdkiiFpdtExtendedFirmwarePerformanceGuid     ## SOMETIMES_CONSUMES ## UNDEFINED # StatusCode Data
 | |
|   gFirmwarePerformanceS3PointerGuid             ## PRODUCES ## UNDEFINED # SaveLockBox
 | |
| 
 | |
| [Pcd]
 | |
|   gEfiMdeModulePkgTokenSpaceGuid.PcdProgressCodeOsLoaderLoad    ## CONSUMES
 | |
|   gEfiMdeModulePkgTokenSpaceGuid.PcdProgressCodeOsLoaderStart   ## CONSUMES
 | |
|   gEfiMdeModulePkgTokenSpaceGuid.PcdExtFpdtBootRecordPadSize    ## CONSUMES
 | |
|   gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultOemId            ## CONSUMES
 | |
|   gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultOemTableId       ## CONSUMES
 | |
|   gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultOemRevision      ## CONSUMES
 | |
|   gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultCreatorId        ## CONSUMES
 | |
|   gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultCreatorRevision  ## CONSUMES
 | |
| 
 | |
| [FeaturePcd]
 | |
|   gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwarePerformanceDataTableS3Support   ## CONSUMES
 | |
| 
 | |
| [Depex]
 | |
|   gEfiRscHandlerProtocolGuid
 | |
| 
 | |
| [UserExtensions.TianoCore."ExtraFiles"]
 | |
|   FirmwarePerformanceDxeExtra.uni
 |