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

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_PROTOCOLmMmCommunication2 = NULL
 

Detailed Description

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.

Function Documentation

◆ GetVariableStatisticsData()

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.

Parameters
[in,out]SmmCommunicateHeaderIn 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]SmmCommunicateSizeThe size of the SmmCommunicateHeader.
Return values
EFI_SUCCESSGet the statistics data information.
EFI_NOT_FOUNDNot found.
EFI_BUFFER_TO_SMALLDataSize is too small for the result.

Definition at line 43 of file VariableInfo.c.

◆ PrintInfoFromSmm()

EFI_STATUS PrintInfoFromSmm ( VOID  )

This function get and print the variable statistics data from SMM variable driver.

Return values
EFI_SUCCESSPrint the statistics information successfully.
EFI_NOT_FOUNDNot found the statistics information.

Definition at line 78 of file VariableInfo.c.

◆ UefiMain()

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.

Parameters
[in]ImageHandleThe firmware allocated handle for the EFI image.
[in]SystemTableA pointer to the EFI System Table.
Return values
EFI_SUCCESSThe entry point is executed successfully.
otherSome error occurs when executing this entry point.

Definition at line 213 of file VariableInfo.c.

Variable Documentation

◆ mMmCommunication2

EFI_MM_COMMUNICATION2_PROTOCOL* mMmCommunication2 = NULL

Definition at line 26 of file VariableInfo.c.