mirror of https://github.com/acidanthera/audk.git
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:
parent
d9c5beb159
commit
98d20e44dc
|
@ -2,7 +2,7 @@
|
||||||
Master header file for DxeIpl PEIM. All source files in this module should
|
Master header file for DxeIpl PEIM. All source files in this module should
|
||||||
include this file for common definitions.
|
include this file for common definitions.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -48,6 +48,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
#include <Library/RecoveryLib.h>
|
#include <Library/RecoveryLib.h>
|
||||||
#include <Library/DebugAgentLib.h>
|
#include <Library/DebugAgentLib.h>
|
||||||
#include <Library/PeiServicesTablePointerLib.h>
|
#include <Library/PeiServicesTablePointerLib.h>
|
||||||
|
#include <Library/PerformanceLib.h>
|
||||||
|
|
||||||
#define STACK_SIZE 0x20000
|
#define STACK_SIZE 0x20000
|
||||||
#define BSP_STORE_SIZE 0x4000
|
#define BSP_STORE_SIZE 0x4000
|
||||||
|
|
|
@ -79,6 +79,7 @@
|
||||||
DebugLib
|
DebugLib
|
||||||
DebugAgentLib
|
DebugAgentLib
|
||||||
PeiServicesTablePointerLib
|
PeiServicesTablePointerLib
|
||||||
|
PerformanceLib
|
||||||
|
|
||||||
[LibraryClasses.ARM, LibraryClasses.AARCH64]
|
[LibraryClasses.ARM, LibraryClasses.AARCH64]
|
||||||
ArmMmuLib
|
ArmMmuLib
|
||||||
|
|
|
@ -320,7 +320,9 @@ HandOffToDxeCore (
|
||||||
//
|
//
|
||||||
// End of PEI phase signal
|
// End of PEI phase signal
|
||||||
//
|
//
|
||||||
|
PERF_EVENT_SIGNAL_BEGIN (gEndOfPeiSignalPpi.Guid);
|
||||||
Status = PeiServicesInstallPpi (&gEndOfPeiSignalPpi);
|
Status = PeiServicesInstallPpi (&gEndOfPeiSignalPpi);
|
||||||
|
PERF_EVENT_SIGNAL_END (gEndOfPeiSignalPpi.Guid);
|
||||||
ASSERT_EFI_ERROR (Status);
|
ASSERT_EFI_ERROR (Status);
|
||||||
|
|
||||||
AsmWriteCr3 (PageTables);
|
AsmWriteCr3 (PageTables);
|
||||||
|
@ -437,7 +439,9 @@ HandOffToDxeCore (
|
||||||
//
|
//
|
||||||
// End of PEI phase signal
|
// End of PEI phase signal
|
||||||
//
|
//
|
||||||
|
PERF_EVENT_SIGNAL_BEGIN (gEndOfPeiSignalPpi.Guid);
|
||||||
Status = PeiServicesInstallPpi (&gEndOfPeiSignalPpi);
|
Status = PeiServicesInstallPpi (&gEndOfPeiSignalPpi);
|
||||||
|
PERF_EVENT_SIGNAL_END (gEndOfPeiSignalPpi.Guid);
|
||||||
ASSERT_EFI_ERROR (Status);
|
ASSERT_EFI_ERROR (Status);
|
||||||
|
|
||||||
if (BuildPageTablesIa32Pae) {
|
if (BuildPageTablesIa32Pae) {
|
||||||
|
|
Loading…
Reference in New Issue