V3:
a. Remove unused definitions
b. Get records size form the records buffer when getting size action
is triggered.
V2:
Update FirmwarePerformanceSmm to receive the address
of performance records instead of records content.
Receive buffer address of Boot performance records
which are reported by SmmCorePerformanceLib.
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 718a937ed9)
		
	
		
			
				
	
	
		
			74 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
			
		
		
	
	
			74 lines
		
	
	
		
			2.4 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 - 2015, 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                      = FirmwarePerformanceSmm
 | |
|   MODULE_UNI_FILE                = FirmwarePerformanceSmm.uni
 | |
|   FILE_GUID                      = 044310AB-77FD-402a-AF1A-87D4120E7329
 | |
|   MODULE_TYPE                    = DXE_SMM_DRIVER
 | |
|   VERSION_STRING                 = 1.0
 | |
|   PI_SPECIFICATION_VERSION       = 0x0001000A
 | |
|   ENTRY_POINT                    = FirmwarePerformanceSmmEntryPoint
 | |
| 
 | |
| #
 | |
| # The following information is for reference only and not required by the build tools.
 | |
| #
 | |
| #  VALID_ARCHITECTURES           = IA32 X64
 | |
| #
 | |
| 
 | |
| [Sources]
 | |
|   FirmwarePerformanceSmm.c
 | |
| 
 | |
| [Packages]
 | |
|   MdePkg/MdePkg.dec
 | |
|   MdeModulePkg/MdeModulePkg.dec
 | |
| 
 | |
| [LibraryClasses]
 | |
|   UefiDriverEntryPoint
 | |
|   SmmServicesTableLib
 | |
|   BaseLib
 | |
|   DebugLib
 | |
|   TimerLib
 | |
|   LockBoxLib
 | |
|   PcdLib
 | |
|   BaseMemoryLib
 | |
|   MemoryAllocationLib
 | |
|   UefiBootServicesTableLib
 | |
|   SynchronizationLib
 | |
|   SmmMemLib
 | |
| 
 | |
| [Protocols]
 | |
|   gEfiSmmRscHandlerProtocolGuid                 ## CONSUMES
 | |
| 
 | |
| [Guids]
 | |
|   ## SOMETIMES_PRODUCES   ## UNDEFINED # SaveLockBox
 | |
|   ## PRODUCES             ## UNDEFINED # SmiHandlerRegister
 | |
|   ## SOMETIMES_CONSUMES   ## UNDEFINED # StatusCode Data
 | |
|   gEfiFirmwarePerformanceGuid
 | |
|   gEdkiiFpdtExtendedFirmwarePerformanceGuid  ## SOMETIMES_PRODUCES ## UNDEFINED # StatusCode Data
 | |
| 
 | |
| [Pcd]
 | |
|   gEfiMdeModulePkgTokenSpaceGuid.PcdProgressCodeS3SuspendStart  ## CONSUMES
 | |
|   gEfiMdeModulePkgTokenSpaceGuid.PcdProgressCodeS3SuspendEnd    ## CONSUMES
 | |
| 
 | |
| [Depex]
 | |
|   gEfiSmmRscHandlerProtocolGuid
 | |
| 
 | |
| [UserExtensions.TianoCore."ExtraFiles"]
 | |
|   FirmwarePerformanceSmmExtra.uni
 |