TianoCore EDK2 master
Loading...
Searching...
No Matches
FirmwarePerformancePei.c File Reference

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI FpdtStatusCodeListenerPei (IN CONST EFI_PEI_SERVICES **PeiServices, IN EFI_STATUS_CODE_TYPE CodeType, IN EFI_STATUS_CODE_VALUE Value, IN UINT32 Instance, IN CONST EFI_GUID *CallerId, IN CONST EFI_STATUS_CODE_DATA *Data)
 
EFI_STATUS EFIAPI FirmwarePerformancePeiEntryPoint (IN EFI_PEI_FILE_HANDLE FileHandle, IN CONST EFI_PEI_SERVICES **PeiServices)
 

Detailed Description

This module updates S3 Resume Performance Record in ACPI Firmware Performance Data Table in S3 resume boot mode.

This module register report status code listener to collect performance data for S3 Resume Performance Record on S3 resume boot path.

Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file FirmwarePerformancePei.c.

Function Documentation

◆ FirmwarePerformancePeiEntryPoint()

EFI_STATUS EFIAPI FirmwarePerformancePeiEntryPoint ( IN EFI_PEI_FILE_HANDLE  FileHandle,
IN CONST EFI_PEI_SERVICES **  PeiServices 
)

Main entry for Firmware Performance Data Table PEIM.

This routine is to register report status code listener for FPDT.

Parameters
[in]FileHandleHandle of the file being invoked.
[in]PeiServicesPointer to PEI Services table.
Return values
EFI_SUCCESSReport status code listener is registered successfully.

Definition at line 207 of file FirmwarePerformancePei.c.

◆ FpdtStatusCodeListenerPei()

EFI_STATUS EFIAPI FpdtStatusCodeListenerPei ( IN CONST EFI_PEI_SERVICES **  PeiServices,
IN EFI_STATUS_CODE_TYPE  CodeType,
IN EFI_STATUS_CODE_VALUE  Value,
IN UINT32  Instance,
IN CONST EFI_GUID CallerId,
IN CONST EFI_STATUS_CODE_DATA Data 
)

Report status code listener for PEI. This is used to record the performance data for S3 FullResume in FPDT.

Parameters
[in]PeiServicesAn indirect pointer to the EFI_PEI_SERVICES table published by the PEI Foundation.
[in]CodeTypeIndicates the type of status code being reported.
[in]ValueDescribes the current status of a hardware or software entity. This included information about the class and subclass that is used to classify the entity as well as an operation.
[in]InstanceThe enumeration of a hardware or software entity within the system. Valid instance numbers start with 1.
[in]CallerIdThis optional parameter may be used to identify the caller. This parameter allows the status code driver to apply different rules to different callers.
[in]DataThis optional parameter may be used to pass additional data.
Return values
EFI_SUCCESSStatus code is what we expected.
EFI_UNSUPPORTEDStatus code not supported.

Definition at line 53 of file FirmwarePerformancePei.c.