--- /dev/null
+/** @file\r
+ If the Variable services have PcdVariableCollectStatistics set to TRUE then \r
+ the EFI system table will contain statistical information about variable usage\r
+ an this utility will print out the information. You can use console redirection\r
+ to capture the data.\r
+ \r
+ Copyright (c) 2006 - 2007, Intel Corporation \r
+ All rights reserved. This program and the accompanying materials \r
+ are licensed and made available under the terms and conditions of the BSD License \r
+ which accompanies this distribution. The full text of the license may be found at \r
+ http://opensource.org/licenses/bsd-license.php \r
+\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+\r
+**/\r
+\r
+#include <Uefi.h>\r
+#include <Library/UefiLib.h>\r
+#include <Library/UefiApplicationEntryPoint.h>\r
+#include <Guid/VariableInfo.h>\r
+\r
+\r
+/**\r
+ The user Entry Point for Application. The user code starts with this function\r
+ as the real entry point for the image goes into a library that calls this \r
+ function.\r
+\r
+\r
+ @param[in] ImageHandle The firmware allocated handle for the EFI image. \r
+ @param[in] SystemTable A pointer to the EFI System Table.\r
+ \r
+ @retval EFI_SUCCESS The entry point is executed successfully.\r
+ @retval other Some error occurs when executing this entry point.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+UefiMain (\r
+ IN EFI_HANDLE ImageHandle,\r
+ IN EFI_SYSTEM_TABLE *SystemTable\r
+ )\r
+{\r
+ EFI_STATUS Status;\r
+ VARIABLE_INFO_ENTRY *VariableInfo;\r
+ VARIABLE_INFO_ENTRY *Entry;\r
+\r
+ Status = EfiGetSystemConfigurationTable (&gEfiVariableInfoGuid, (VOID **)&Entry);\r
+ if (!EFI_ERROR (Status) && (Entry != NULL)) {\r
+ Print (L"Non-Volatile EFI Variables:\n");\r
+ VariableInfo = Entry;\r
+ do {\r
+ if (!VariableInfo->Volatile) {\r
+ Print (\r
+ L"%g R%03d(%03d) W%03d D%03d:%s\n", \r
+ &VariableInfo->VendorGuid, \r
+ VariableInfo->ReadCount,\r
+ VariableInfo->CacheCount,\r
+ VariableInfo->WriteCount,\r
+ VariableInfo->DeleteCount,\r
+ VariableInfo->Name\r
+ );\r
+ }\r
+\r
+ VariableInfo = VariableInfo->Next;\r
+ } while (VariableInfo != NULL);\r
+\r
+ Print (L"Volatile EFI Variables:\n");\r
+ VariableInfo = Entry;\r
+ do {\r
+ if (VariableInfo->Volatile) {\r
+ Print (\r
+ L"%g R%03d(%03d) W%03d D%03d:%s\n", \r
+ &VariableInfo->VendorGuid, \r
+ VariableInfo->ReadCount,\r
+ VariableInfo->CacheCount,\r
+ VariableInfo->WriteCount,\r
+ VariableInfo->DeleteCount,\r
+ VariableInfo->Name\r
+ );\r
+ }\r
+ VariableInfo = VariableInfo->Next;\r
+ } while (VariableInfo != NULL);\r
+\r
+ }\r
+\r
+ return Status;\r
+}\r
--- /dev/null
+#/** @file\r
+# Sample UEFI Application Reference Module.\r
+# This is a shell application that will display statistical information about variable\r
+# usage.\r
+# \r
+# Copyright (c) 2007 - 2008, Intel Corporation.\r
+# All rights reserved. This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+#**/\r
+\r
+[Defines]\r
+ INF_VERSION = 0x00010005\r
+ BASE_NAME = VariableInfo\r
+ FILE_GUID = 202A2922-8C27-4943-9855-26180BF9F113\r
+ MODULE_TYPE = UEFI_APPLICATION\r
+ VERSION_STRING = 1.0\r
+\r
+ ENTRY_POINT = UefiMain\r
+\r
+#\r
+# The following information is for reference only and not required by the build tools.\r
+#\r
+# VALID_ARCHITECTURES = IA32 X64 IPF EBC\r
+#\r
+\r
+[Sources.common]\r
+ VariableInfo.c\r
+\r
+\r
+[Packages]\r
+ MdePkg/MdePkg.dec\r
+ MdeModulePkg/MdeModulePkg.dec\r
+\r
+\r
+[LibraryClasses]\r
+ UefiApplicationEntryPoint\r
+ UefiLib\r
+\r
+[Guids]\r
+ gEfiVariableInfoGuid ## CONSUMES ## Configuration Table Guid\r
+++ /dev/null
-/** @file\r
- If the Variable services have PcdVariableCollectStatistics set to TRUE then \r
- the EFI system table will contain statistical information about variable usage\r
- an this utility will print out the information. You can use console redirection\r
- to capture the data.\r
- \r
- Copyright (c) 2006 - 2007, Intel Corporation \r
- All rights reserved. This program and the accompanying materials \r
- are licensed and made available under the terms and conditions of the BSD License \r
- which accompanies this distribution. The full text of the license may be found at \r
- http://opensource.org/licenses/bsd-license.php \r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
-\r
-**/\r
-\r
-#include <Uefi.h>\r
-#include <Library/UefiLib.h>\r
-#include <Library/UefiApplicationEntryPoint.h>\r
-#include <Guid/VariableInfo.h>\r
-\r
-\r
-/**\r
- The user Entry Point for Application. The user code starts with this function\r
- as the real entry point for the image goes into a library that calls this \r
- function.\r
-\r
-\r
- @param[in] ImageHandle The firmware allocated handle for the EFI image. \r
- @param[in] SystemTable A pointer to the EFI System Table.\r
- \r
- @retval EFI_SUCCESS The entry point is executed successfully.\r
- @retval other Some error occurs when executing this entry point.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-UefiMain (\r
- IN EFI_HANDLE ImageHandle,\r
- IN EFI_SYSTEM_TABLE *SystemTable\r
- )\r
-{\r
- EFI_STATUS Status;\r
- VARIABLE_INFO_ENTRY *VariableInfo;\r
- VARIABLE_INFO_ENTRY *Entry;\r
-\r
- Status = EfiGetSystemConfigurationTable (&gEfiVariableInfoGuid, (VOID **)&Entry);\r
- if (!EFI_ERROR (Status) && (Entry != NULL)) {\r
- Print (L"Non-Volatile EFI Variables:\n");\r
- VariableInfo = Entry;\r
- do {\r
- if (!VariableInfo->Volatile) {\r
- Print (\r
- L"%g R%03d(%03d) W%03d D%03d:%s\n", \r
- &VariableInfo->VendorGuid, \r
- VariableInfo->ReadCount,\r
- VariableInfo->CacheCount,\r
- VariableInfo->WriteCount,\r
- VariableInfo->DeleteCount,\r
- VariableInfo->Name\r
- );\r
- }\r
-\r
- VariableInfo = VariableInfo->Next;\r
- } while (VariableInfo != NULL);\r
-\r
- Print (L"Volatile EFI Variables:\n");\r
- VariableInfo = Entry;\r
- do {\r
- if (VariableInfo->Volatile) {\r
- Print (\r
- L"%g R%03d(%03d) W%03d D%03d:%s\n", \r
- &VariableInfo->VendorGuid, \r
- VariableInfo->ReadCount,\r
- VariableInfo->CacheCount,\r
- VariableInfo->WriteCount,\r
- VariableInfo->DeleteCount,\r
- VariableInfo->Name\r
- );\r
- }\r
- VariableInfo = VariableInfo->Next;\r
- } while (VariableInfo != NULL);\r
-\r
- }\r
-\r
- return Status;\r
-}\r
+++ /dev/null
-#/** @file\r
-# Sample UEFI Application Reference Module.\r
-# This is a shell application that will display statistical information about variable\r
-# usage.\r
-# \r
-# Copyright (c) 2007 - 2008, Intel Corporation.\r
-# All rights reserved. This program and the accompanying materials\r
-# are licensed and made available under the terms and conditions of the BSD License\r
-# which accompanies this distribution. The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-#**/\r
-\r
-[Defines]\r
- INF_VERSION = 0x00010005\r
- BASE_NAME = VariableInfo\r
- FILE_GUID = 202A2922-8C27-4943-9855-26180BF9F113\r
- MODULE_TYPE = UEFI_APPLICATION\r
- VERSION_STRING = 1.0\r
-\r
- ENTRY_POINT = UefiMain\r
-\r
-#\r
-# The following information is for reference only and not required by the build tools.\r
-#\r
-# VALID_ARCHITECTURES = IA32 X64 IPF EBC\r
-#\r
-\r
-[Sources.common]\r
- VariableInfo.c\r
-\r
-\r
-[Packages]\r
- MdePkg/MdePkg.dec\r
- MdeModulePkg/MdeModulePkg.dec\r
-\r
-\r
-[LibraryClasses]\r
- UefiApplicationEntryPoint\r
- UefiLib\r
-\r
-[Guids]\r
- gEfiVariableInfoGuid ## CONSUMES ## Configuration Table Guid\r