This flag is to control which memory types of alloc info will be recorded by DxeCore & SmmCore.
For SmmCore, only EfiRuntimeServicesCode and EfiRuntimeServicesData are valid.
Below is bit mask for this PCD: (Order is same as UEFI spec)
EfiReservedMemoryType 0x0001
EfiLoaderCode 0x0002
EfiLoaderData 0x0004
EfiBootServicesCode 0x0008
EfiBootServicesData 0x0010
EfiRuntimeServicesCode 0x0020
EfiRuntimeServicesData 0x0040
EfiConventionalMemory 0x0080
EfiUnusableMemory 0x0100
EfiACPIReclaimMemory 0x0200
EfiACPIMemoryNVS 0x0400
EfiMemoryMappedIO 0x0800
EfiMemoryMappedIOPortSpace 0x1000
EfiPalCode 0x2000
EfiPersistentMemory 0x4000
OEM Reserved 0x4000000000000000
OS Reserved 0x8000000000000000
e.g. Reserved+ACPINvs+ACPIReclaim+RuntimeCode+RuntimeData are needed, 0x661 should be used.
Memory profile memory type.
Name | Token Space | Token number | Data Type | Default Value |
PcdMemoryProfileMemoryType | gEfiMdeModulePkgTokenSpaceGuid | 0x30001042 | UINT64 | 0x0 |