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>
Master header file for DxeIpl PEIM. All source files in this module should\r
include this file for common definitions.\r
\r
Master header file for DxeIpl PEIM. All source files in this module should\r
include this file for common definitions.\r
\r
-Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
#include <Library/RecoveryLib.h>\r
#include <Library/DebugAgentLib.h>\r
#include <Library/PeiServicesTablePointerLib.h>\r
#include <Library/RecoveryLib.h>\r
#include <Library/DebugAgentLib.h>\r
#include <Library/PeiServicesTablePointerLib.h>\r
+#include <Library/PerformanceLib.h>\r
\r
#define STACK_SIZE 0x20000\r
#define BSP_STORE_SIZE 0x4000\r
\r
#define STACK_SIZE 0x20000\r
#define BSP_STORE_SIZE 0x4000\r
DebugLib\r
DebugAgentLib\r
PeiServicesTablePointerLib\r
DebugLib\r
DebugAgentLib\r
PeiServicesTablePointerLib\r
\r
[LibraryClasses.ARM, LibraryClasses.AARCH64]\r
ArmMmuLib\r
\r
[LibraryClasses.ARM, LibraryClasses.AARCH64]\r
ArmMmuLib\r
//\r
// End of PEI phase signal\r
//\r
//\r
// End of PEI phase signal\r
//\r
+ PERF_EVENT_SIGNAL_BEGIN (gEndOfPeiSignalPpi.Guid);\r
Status = PeiServicesInstallPpi (&gEndOfPeiSignalPpi);\r
Status = PeiServicesInstallPpi (&gEndOfPeiSignalPpi);\r
+ PERF_EVENT_SIGNAL_END (gEndOfPeiSignalPpi.Guid);\r
ASSERT_EFI_ERROR (Status);\r
\r
AsmWriteCr3 (PageTables);\r
ASSERT_EFI_ERROR (Status);\r
\r
AsmWriteCr3 (PageTables);\r
//\r
// End of PEI phase signal\r
//\r
//\r
// End of PEI phase signal\r
//\r
+ PERF_EVENT_SIGNAL_BEGIN (gEndOfPeiSignalPpi.Guid);\r
Status = PeiServicesInstallPpi (&gEndOfPeiSignalPpi);\r
Status = PeiServicesInstallPpi (&gEndOfPeiSignalPpi);\r
+ PERF_EVENT_SIGNAL_END (gEndOfPeiSignalPpi.Guid);\r
ASSERT_EFI_ERROR (Status);\r
\r
if (BuildPageTablesIa32Pae) {\r
ASSERT_EFI_ERROR (Status);\r
\r
if (BuildPageTablesIa32Pae) {\r