diff options
author | Bi, Dandan <dandan.bi@intel.com> | 2018-06-22 16:56:21 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2018-06-26 15:36:59 +0800 |
commit | 67e9ab84ef042bd59c4297fdad7f6aece6b7bbca (patch) | |
tree | 9f47b68e792551e6608db4fadd9a82a964876aae /MdeModulePkg/Library | |
parent | f45dd2dd4f1d6fab4bb62bfd5f4e71cb7849897d (diff) | |
download | edk2-67e9ab84ef042bd59c4297fdad7f6aece6b7bbca.zip edk2-67e9ab84ef042bd59c4297fdad7f6aece6b7bbca.tar.gz edk2-67e9ab84ef042bd59c4297fdad7f6aece6b7bbca.tar.bz2 |
MdeModulePkg: Use new added Perf macros
Replace old Perf macros with the new added ones.
Cc: Liming Gao <liming.gao@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Cc: Eric Dong <eric.dong@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>
Diffstat (limited to 'MdeModulePkg/Library')
-rw-r--r-- | MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c | 2 | ||||
-rw-r--r-- | MdeModulePkg/Library/UefiBootManagerLib/BmConsole.c | 9 |
2 files changed, 4 insertions, 7 deletions
diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c b/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c index b842d58..59bd1e4 100644 --- a/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c +++ b/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c @@ -45,7 +45,7 @@ BmEndOfBdsPerfCode ( //
// Record the performance data for End of BDS
//
- PERF_END(NULL, "BDS", NULL, 0);
+ PERF_CROSSMODULE_END("BDS");
return ;
}
diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmConsole.c b/MdeModulePkg/Library/UefiBootManagerLib/BmConsole.c index 8051181..d85b603 100644 --- a/MdeModulePkg/Library/UefiBootManagerLib/BmConsole.c +++ b/MdeModulePkg/Library/UefiBootManagerLib/BmConsole.c @@ -722,23 +722,20 @@ EfiBootManagerConnectAllDefaultConsoles ( if (!EFI_ERROR (Status)) {
OneConnected = TRUE;
}
- PERF_START (NULL, "ConOutReady", "BDS", 1);
- PERF_END (NULL, "ConOutReady", "BDS", 0);
+ PERF_EVENT ("ConOutReady");
Status = EfiBootManagerConnectConsoleVariable (ConIn);
if (!EFI_ERROR (Status)) {
OneConnected = TRUE;
}
- PERF_START (NULL, "ConInReady", "BDS", 1);
- PERF_END (NULL, "ConInReady", "BDS", 0);
+ PERF_EVENT ("ConInReady");
Status = EfiBootManagerConnectConsoleVariable (ErrOut);
if (!EFI_ERROR (Status)) {
OneConnected = TRUE;
}
- PERF_START (NULL, "ErrOutReady", "BDS", 1);
- PERF_END (NULL, "ErrOutReady", "BDS", 0);
+ PERF_EVENT ("ErrOutReady");
SystemTableUpdated = FALSE;
//
|