TianoCore EDK2 master
Loading...
Searching...
No Matches
SmmMpPerf.c File Reference
#include "PiSmmCpuCommon.h"

Go to the source code of this file.

Macros

#define SMM_MP_PERF_PROCEDURE_NAME(procedure)   # procedure
 

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)
 

Variables

GLOBAL_REMOVE_IF_UNREFERENCED CHAR8 * gSmmMpPerfProcedureName []
 
GLOBAL_REMOVE_IF_UNREFERENCED SMM_PERF_AP_PROCEDURE_PERFORMANCEmSmmMpProcedurePerformance = NULL
 

Detailed Description

SMM MP perf-logging implementation

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

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

Definition in file SmmMpPerf.c.

Macro Definition Documentation

◆ SMM_MP_PERF_PROCEDURE_NAME

#define SMM_MP_PERF_PROCEDURE_NAME (   procedure)    # procedure

Definition at line 12 of file SmmMpPerf.c.

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.

Variable Documentation

◆ gSmmMpPerfProcedureName

GLOBAL_REMOVE_IF_UNREFERENCED CHAR8* gSmmMpPerfProcedureName[]
Initial value:
= {
}

Definition at line 14 of file SmmMpPerf.c.

◆ mSmmMpProcedurePerformance

Definition at line 21 of file SmmMpPerf.c.