MdeModulePkg/DxeLoadFunc: Add use case for new Perf macro
Add an example case for the usage of PERF_EVENT_SIGNAL_BEGIN/PERF_EVENT_SIGNAL_END Cc: Liming Gao <liming.gao@intel.com> Cc: Star Zeng <star.zeng@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>
This commit is contained in:
@@ -320,7 +320,9 @@ HandOffToDxeCore (
|
||||
//
|
||||
// End of PEI phase signal
|
||||
//
|
||||
PERF_EVENT_SIGNAL_BEGIN (gEndOfPeiSignalPpi.Guid);
|
||||
Status = PeiServicesInstallPpi (&gEndOfPeiSignalPpi);
|
||||
PERF_EVENT_SIGNAL_END (gEndOfPeiSignalPpi.Guid);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
|
||||
AsmWriteCr3 (PageTables);
|
||||
@@ -437,7 +439,9 @@ HandOffToDxeCore (
|
||||
//
|
||||
// End of PEI phase signal
|
||||
//
|
||||
PERF_EVENT_SIGNAL_BEGIN (gEndOfPeiSignalPpi.Guid);
|
||||
Status = PeiServicesInstallPpi (&gEndOfPeiSignalPpi);
|
||||
PERF_EVENT_SIGNAL_END (gEndOfPeiSignalPpi.Guid);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
|
||||
if (BuildPageTablesIa32Pae) {
|
||||
|
Reference in New Issue
Block a user