This patch enhance SMM memory profile SMM communication by using fixed SMM communication buffer. Update MemoryProfileInfo APP to use fixed SMM communication buffer to get profile data by SMRAM_PROFILE_COMMAND_GET_PROFILE_DATA_BY_OFFSET API. This is designed to meet Microsoft WSMT table definition on FIXED_COMM_BUFFERS requirement. Cc: Star Zeng <star.zeng@intel.com> Cc: Feng Tian <feng.tian@intel.com> Cc: Laszlo Ersek <lersek@redhat.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Feng Tian <feng.tian@intel.com>
		
			
				
	
	
		
			64 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
			
		
		
	
	
			64 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
## @file
 | 
						|
#  Shell application to dump UEFI memory and SMRAM profile information.
 | 
						|
#
 | 
						|
#  Note that if the feature is not enabled by setting PcdMemoryProfilePropertyMask,
 | 
						|
#  the application will not display memory profile information.
 | 
						|
#
 | 
						|
#  Copyright (c) 2014 - 2016, 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                      = MemoryProfileInfo
 | 
						|
  MODULE_UNI_FILE                = MemoryProfileInfo.uni
 | 
						|
  FILE_GUID                      = 21429B90-5F67-4e93-AF55-1D314D646E12
 | 
						|
  MODULE_TYPE                    = UEFI_APPLICATION
 | 
						|
  VERSION_STRING                 = 1.0
 | 
						|
  ENTRY_POINT                    = UefiMain
 | 
						|
 | 
						|
#
 | 
						|
# The following information is for reference only and not required by the build tools.
 | 
						|
#
 | 
						|
#  VALID_ARCHITECTURES           = IA32 X64 IPF EBC
 | 
						|
#
 | 
						|
 | 
						|
[Sources]
 | 
						|
  MemoryProfileInfo.c
 | 
						|
 | 
						|
[Packages]
 | 
						|
  MdePkg/MdePkg.dec
 | 
						|
  MdeModulePkg/MdeModulePkg.dec
 | 
						|
 | 
						|
[LibraryClasses]
 | 
						|
  UefiApplicationEntryPoint
 | 
						|
  BaseLib
 | 
						|
  BaseMemoryLib
 | 
						|
  UefiBootServicesTableLib
 | 
						|
  UefiRuntimeServicesTableLib
 | 
						|
  DebugLib
 | 
						|
  UefiLib
 | 
						|
  MemoryAllocationLib
 | 
						|
  DxeServicesLib
 | 
						|
  PeCoffGetEntryPointLib
 | 
						|
  PrintLib
 | 
						|
  
 | 
						|
[Guids]
 | 
						|
  ## SOMETIMES_CONSUMES   ## GUID # Locate protocol
 | 
						|
  ## SOMETIMES_CONSUMES   ## GUID # SmiHandlerRegister
 | 
						|
  gEdkiiMemoryProfileGuid
 | 
						|
  gZeroGuid                            ## SOMETIMES_CONSUMES   ## GUID
 | 
						|
  gEdkiiPiSmmCommunicationRegionTableGuid    ## SOMETIMES_CONSUMES ## SystemTable
 | 
						|
 | 
						|
[Protocols]
 | 
						|
  gEfiSmmCommunicationProtocolGuid     ## SOMETIMES_CONSUMES
 | 
						|
 | 
						|
[UserExtensions.TianoCore."ExtraFiles"]
 | 
						|
  MemoryProfileInfoExtra.uni
 |