mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-29 08:34:07 +02:00
MdeModulePkg DxeCore: Remove unreferenced symbol for memory profile
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=370 Use GLOBAL_REMOVE_IF_UNREFERENCED for some memory profile global variables, then their symbols could be removed when memory profile is disabled. Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Feng Tian <feng.tian@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
6e6ceae6e6
commit
bd40dd27aa
@ -63,11 +63,11 @@ GLOBAL_REMOVE_IF_UNREFERENCED MEMORY_PROFILE_CONTEXT_DATA mMemoryProfileContext
|
|||||||
};
|
};
|
||||||
GLOBAL_REMOVE_IF_UNREFERENCED MEMORY_PROFILE_CONTEXT_DATA *mMemoryProfileContextPtr = NULL;
|
GLOBAL_REMOVE_IF_UNREFERENCED MEMORY_PROFILE_CONTEXT_DATA *mMemoryProfileContextPtr = NULL;
|
||||||
|
|
||||||
EFI_LOCK mMemoryProfileLock = EFI_INITIALIZE_LOCK_VARIABLE (TPL_NOTIFY);
|
GLOBAL_REMOVE_IF_UNREFERENCED EFI_LOCK mMemoryProfileLock = EFI_INITIALIZE_LOCK_VARIABLE (TPL_NOTIFY);
|
||||||
BOOLEAN mMemoryProfileGettingStatus = FALSE;
|
GLOBAL_REMOVE_IF_UNREFERENCED BOOLEAN mMemoryProfileGettingStatus = FALSE;
|
||||||
BOOLEAN mMemoryProfileRecordingEnable = MEMORY_PROFILE_RECORDING_DISABLE;
|
GLOBAL_REMOVE_IF_UNREFERENCED BOOLEAN mMemoryProfileRecordingEnable = MEMORY_PROFILE_RECORDING_DISABLE;
|
||||||
EFI_DEVICE_PATH_PROTOCOL *mMemoryProfileDriverPath;
|
GLOBAL_REMOVE_IF_UNREFERENCED EFI_DEVICE_PATH_PROTOCOL *mMemoryProfileDriverPath;
|
||||||
UINTN mMemoryProfileDriverPathSize;
|
GLOBAL_REMOVE_IF_UNREFERENCED UINTN mMemoryProfileDriverPathSize;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get memory profile data.
|
Get memory profile data.
|
||||||
@ -209,7 +209,7 @@ ProfileProtocolRecord (
|
|||||||
IN CHAR8 *ActionString OPTIONAL
|
IN CHAR8 *ActionString OPTIONAL
|
||||||
);
|
);
|
||||||
|
|
||||||
EDKII_MEMORY_PROFILE_PROTOCOL mProfileProtocol = {
|
GLOBAL_REMOVE_IF_UNREFERENCED EDKII_MEMORY_PROFILE_PROTOCOL mProfileProtocol = {
|
||||||
ProfileProtocolGetData,
|
ProfileProtocolGetData,
|
||||||
ProfileProtocolRegisterImage,
|
ProfileProtocolRegisterImage,
|
||||||
ProfileProtocolUnregisterImage,
|
ProfileProtocolUnregisterImage,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user