mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-25 22:54:51 +02:00
MdeModulePkg MemoryProfile.h:two bytes of Reserved[4] as ActionStringOffset
At 94092aa60341a3e4b1e1ea7c362781b8404ac538, we extended MEMORY_PROFILE_ALLOC_INFO to add ActionStringOffset and Reserved2[6] fields, that was not aware the Reserved[4] field can be reused to have better memory profile database size efficiency. With the patch, PcdMemoryProfilePropertyMask|0x3 and PcdMemoryProfileMemoryType|0xffff, the memory profile database size can be reduced as below on my sample platform. UefiMemoryProfileSize - 0x1597A8 -> UefiMemoryProfileSize - 0x12AB28 SmramProfileSize - 0xCF68 -> SmramProfileSize - 0xB8E8 Cc: Jiewen Yao <jiewen.yao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
This commit is contained in:
parent
2a3a91eb9d
commit
072a3ca1d3
@ -146,13 +146,12 @@ typedef struct {
|
|||||||
MEMORY_PROFILE_COMMON_HEADER Header;
|
MEMORY_PROFILE_COMMON_HEADER Header;
|
||||||
PHYSICAL_ADDRESS CallerAddress;
|
PHYSICAL_ADDRESS CallerAddress;
|
||||||
UINT32 SequenceId;
|
UINT32 SequenceId;
|
||||||
UINT8 Reserved[4];
|
UINT8 Reserved[2];
|
||||||
|
UINT16 ActionStringOffset;
|
||||||
MEMORY_PROFILE_ACTION Action;
|
MEMORY_PROFILE_ACTION Action;
|
||||||
EFI_MEMORY_TYPE MemoryType;
|
EFI_MEMORY_TYPE MemoryType;
|
||||||
PHYSICAL_ADDRESS Buffer;
|
PHYSICAL_ADDRESS Buffer;
|
||||||
UINT64 Size;
|
UINT64 Size;
|
||||||
UINT16 ActionStringOffset;
|
|
||||||
UINT8 Reserved2[6];
|
|
||||||
//CHAR8 ActionString[];
|
//CHAR8 ActionString[];
|
||||||
} MEMORY_PROFILE_ALLOC_INFO;
|
} MEMORY_PROFILE_ALLOC_INFO;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user