TianoCore EDK2 master
Loading...
Searching...
No Matches
SmmMpPerf.h File Reference

Go to the source code of this file.

Data Structures

struct  SMM_PERF_AP_PROCEDURE_PERFORMANCE
 

Macros

#define SMM_MP_PERF_PROCEDURE_LIST(_)
 
#define SMM_MP_PERF_PROCEDURE_ID(procedure)   SmmMpProcedureId ## procedure
 

Enumerations

enum  
 

Functions

VOID InitializeMpPerf (UINTN NumberofCpus)
 
VOID MigrateMpPerf (UINTN NumberofCpus, UINTN BspIndex)
 
VOID MpPerfBegin (IN UINTN CpuIndex, IN UINTN MpProcedureId)
 
VOID MpPerfEnd (IN UINTN CpuIndex, IN UINTN MpProcedureId)
 

Detailed Description

SMM MP perf-logging implementation

Copyright (c) 2023, Intel Corporation. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file SmmMpPerf.h.

Macro Definition Documentation

◆ SMM_MP_PERF_PROCEDURE_ID

#define SMM_MP_PERF_PROCEDURE_ID (   procedure)    SmmMpProcedureId ## procedure

Definition at line 27 of file SmmMpPerf.h.

◆ SMM_MP_PERF_PROCEDURE_LIST

#define SMM_MP_PERF_PROCEDURE_LIST (   _)
Value:
_(SmmRendezvousEntry), \
_(SmmRendezvousExit), \
_(SmmMpProcedureMax)
VOID InitializeSmm(VOID)
BOOLEAN EFIAPI PlatformValidSmi(VOID)

Definition at line 16 of file SmmMpPerf.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Definition at line 28 of file SmmMpPerf.h.

Function Documentation

◆ InitializeMpPerf()

VOID InitializeMpPerf ( UINTN  NumberofCpus)

Initialize the perf-logging feature for APs.

Parameters
NumberofCpusNumber of processors in the platform.

Definition at line 29 of file SmmMpPerf.c.

◆ MigrateMpPerf()

VOID MigrateMpPerf ( UINTN  NumberofCpus,
UINTN  BspIndex 
)

Migrate MP performance data to standardized performance database.

Parameters
NumberofCpusNumber of processors in the platform.
BspIndexThe index of the BSP.

Definition at line 44 of file SmmMpPerf.c.

◆ MpPerfBegin()

VOID MpPerfBegin ( IN UINTN  CpuIndex,
IN UINTN  MpProcedureId 
)

Save the performance counter value before running the MP procedure.

Parameters
CpuIndexThe index of the CPU.
MpProcedureIdThe ID of the MP procedure.

Definition at line 78 of file SmmMpPerf.c.

◆ MpPerfEnd()

VOID MpPerfEnd ( IN UINTN  CpuIndex,
IN UINTN  MpProcedureId 
)

Save the performance counter value after running the MP procedure.

Parameters
CpuIndexThe index of the CPU.
MpProcedureIdThe ID of the MP procedure.

Definition at line 93 of file SmmMpPerf.c.