/* This routine is to register report status code listener for FPDT. */
EFI_STATUS EFIAPI FirmwarePerformancePeiEntryPoint(IN EFI_PEI_FILE_HANDLE FileHandle, IN CONST EFI_PEI_SERVICES **PeiServices)
/* This routine is to register report status code listener for FPDT. */
EFI_STATUS EFIAPI FirmwarePerformancePeiEntryPoint(IN EFI_PEI_FILE_HANDLE FileHandle, IN CONST EFI_PEI_SERVICES **PeiServices)
{
  EFI_STATUS               Status;
  EFI_PEI_RSC_HANDLER_PPI  *RscHandler;
  if (FeaturePcdGet (PcdFirmwarePerformanceDataTableS3Support)) {
    Status = PeiServicesLocatePpi (
               &gEfiPeiRscHandlerPpiGuid,
               0,
               NULL,
               (VOID **)&RscHandler
               );
    ASSERT_EFI_ERROR (Status);
    Status = RscHandler->Register (FpdtStatusCodeListenerPei);
    ASSERT_EFI_ERROR (Status);
  }
  return EFI_SUCCESS;
}