TianoCore EDK2 master
|
#include <PiPei.h>
#include <Ppi/ReportStatusCodeHandler.h>
#include <Ppi/ReadOnlyVariable2.h>
#include <Guid/FirmwarePerformance.h>
#include <Guid/Performance.h>
#include <Guid/ExtendedFirmwarePerformance.h>
#include <Library/PeiServicesLib.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/TimerLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/LockBoxLib.h>
#include <Library/PcdLib.h>
#include <Library/HobLib.h>
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) |
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.
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.
[in] | FileHandle | Handle of the file being invoked. |
[in] | PeiServices | Pointer to PEI Services table. |
EFI_SUCCESS | Report status code listener is registered successfully. |
Definition at line 207 of file FirmwarePerformancePei.c.
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.
[in] | PeiServices | An indirect pointer to the EFI_PEI_SERVICES table published by the PEI Foundation. |
[in] | CodeType | Indicates the type of status code being reported. |
[in] | Value | Describes 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] | Instance | The enumeration of a hardware or software entity within the system. Valid instance numbers start with 1. |
[in] | CallerId | This optional parameter may be used to identify the caller. This parameter allows the status code driver to apply different rules to different callers. |
[in] | Data | This optional parameter may be used to pass additional data. |
EFI_SUCCESS | Status code is what we expected. |
EFI_UNSUPPORTED | Status code not supported. |
Definition at line 53 of file FirmwarePerformancePei.c.