TianoCore EDK2 master
|
#include <Uefi.h>
#include <Library/UefiLib.h>
#include <Library/UefiApplicationEntryPoint.h>
#include <Library/BaseMemoryLib.h>
#include <Library/BaseLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/DebugLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Guid/VariableFormat.h>
#include <Guid/SmmVariableCommon.h>
#include <Guid/PiSmmCommunicationRegionTable.h>
#include <Protocol/MmCommunication2.h>
#include <Protocol/SmmVariable.h>
Go to the source code of this file.
Functions | |
EFI_STATUS EFIAPI | GetVariableStatisticsData (IN OUT EFI_MM_COMMUNICATE_HEADER *SmmCommunicateHeader, IN OUT UINTN *SmmCommunicateSize) |
EFI_STATUS | PrintInfoFromSmm (VOID) |
EFI_STATUS EFIAPI | UefiMain (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
Variables | |
EFI_MM_COMMUNICATION2_PROTOCOL * | mMmCommunication2 = NULL |
If the Variable services have PcdVariableCollectStatistics set to TRUE then this utility will print out the statistics information. You can use console redirection to capture the data.
Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file VariableInfo.c.
EFI_STATUS EFIAPI GetVariableStatisticsData | ( | IN OUT EFI_MM_COMMUNICATE_HEADER * | SmmCommunicateHeader, |
IN OUT UINTN * | SmmCommunicateSize | ||
) |
This function get the variable statistics data from SMM variable driver.
[in,out] | SmmCommunicateHeader | In input, a pointer to a collection of data that will be passed into an SMM environment. In output, a pointer to a collection of data that comes from an SMM environment. |
[in,out] | SmmCommunicateSize | The size of the SmmCommunicateHeader. |
EFI_SUCCESS | Get the statistics data information. |
EFI_NOT_FOUND | Not found. |
EFI_BUFFER_TO_SMALL | DataSize is too small for the result. |
Definition at line 43 of file VariableInfo.c.
EFI_STATUS PrintInfoFromSmm | ( | VOID | ) |
This function get and print the variable statistics data from SMM variable driver.
EFI_SUCCESS | Print the statistics information successfully. |
EFI_NOT_FOUND | Not found the statistics information. |
Definition at line 78 of file VariableInfo.c.
EFI_STATUS EFIAPI UefiMain | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
The user Entry Point for Application. The user code starts with this function as the real entry point for the image goes into a library that calls this function.
[in] | ImageHandle | The firmware allocated handle for the EFI image. |
[in] | SystemTable | A pointer to the EFI System Table. |
EFI_SUCCESS | The entry point is executed successfully. |
other | Some error occurs when executing this entry point. |
Definition at line 213 of file VariableInfo.c.
EFI_MM_COMMUNICATION2_PROTOCOL* mMmCommunication2 = NULL |
Definition at line 26 of file VariableInfo.c.