X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FInclude%2FGuid%2FPerformance.h;h=72e39787a6166a9b93b845cca59b663f742b568f;hp=df40c6ce5b7967de65e12e7a3060d2c414db4c6a;hb=9917def3294bac4d14cd86ba382652aa41c6c1d6;hpb=cfb0aba7934b5dc2c6495139e8e6b0b41f1d50b5 diff --git a/MdeModulePkg/Include/Guid/Performance.h b/MdeModulePkg/Include/Guid/Performance.h index df40c6ce5b..72e39787a6 100644 --- a/MdeModulePkg/Include/Guid/Performance.h +++ b/MdeModulePkg/Include/Guid/Performance.h @@ -2,15 +2,15 @@ This file defines performance-related definitions, including the format of: * performance GUID HOB. * performance protocol interfaces. - * performance variables. + * performance variables. -Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.
-This program and the accompanying materials are licensed and made available under -the terms and conditions of the BSD License that accompanies this distribution. +Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
+This program and the accompanying materials are licensed and made available under +the terms and conditions of the BSD License that accompanies this distribution. The full text of the license may be found at -http://opensource.org/licenses/bsd-license.php. +http://opensource.org/licenses/bsd-license.php. -THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. **/ @@ -36,7 +36,7 @@ typedef struct { typedef struct { EFI_PHYSICAL_ADDRESS Handle; - CHAR8 Token[PEI_PERFORMANCE_STRING_SIZE]; ///< Measured token string name. + CHAR8 Token[PEI_PERFORMANCE_STRING_SIZE]; ///< Measured token string name. CHAR8 Module[PEI_PERFORMANCE_STRING_SIZE]; ///< Module string name. UINT64 StartTimeStamp; ///< Start time point. UINT64 EndTimeStamp; ///< End time point. @@ -44,38 +44,13 @@ typedef struct { // // The header must be aligned at 8 bytes. -// +// typedef struct { UINT32 NumberOfEntries; ///< The number of all performance log entries. UINT32 Reserved; } PEI_PERFORMANCE_LOG_HEADER; -// -// The data structure for performance data in ACPI memory. -// -#define PERFORMANCE_SIGNATURE SIGNATURE_32 ('P', 'e', 'r', 'f') -#define PERF_TOKEN_SIZE 28 -#define PERF_TOKEN_LENGTH (PERF_TOKEN_SIZE - 1) -#define PERF_PEI_ENTRY_MAX_NUM 50 -#define PERF_DATA_MAX_LENGTH 0x4000 - -typedef struct { - CHAR8 Token[PERF_TOKEN_SIZE]; - UINT32 Duration; -} PERF_DATA; - -typedef struct { - UINT64 BootToOs; - UINT64 S3Resume; - UINT32 S3EntryNum; - PERF_DATA S3Entry[PERF_PEI_ENTRY_MAX_NUM]; - UINT64 CpuFreq; - UINT64 BDSRaw; - UINT32 Count; - UINT32 Signiture; -} PERF_HEADER; - #define PERFORMANCE_PROTOCOL_GUID \ { 0x76b6bdfa, 0x2acd, 0x4462, { 0x9E, 0x3F, 0xcb, 0x58, 0xC9, 0x69, 0xd9, 0x37 } } @@ -101,7 +76,7 @@ typedef struct _PERFORMANCE_EX_PROTOCOL PERFORMANCE_EX_PROTOCOL; typedef struct { EFI_PHYSICAL_ADDRESS Handle; - CHAR8 Token[DXE_PERFORMANCE_STRING_SIZE]; ///< Measured token string name. + CHAR8 Token[DXE_PERFORMANCE_STRING_SIZE]; ///< Measured token string name. CHAR8 Module[DXE_PERFORMANCE_STRING_SIZE]; ///< Module string name. UINT64 StartTimeStamp; ///< Start time point. UINT64 EndTimeStamp; ///< End time point. @@ -109,7 +84,7 @@ typedef struct { typedef struct { EFI_PHYSICAL_ADDRESS Handle; - CHAR8 Token[DXE_PERFORMANCE_STRING_SIZE]; ///< Measured token string name. + CHAR8 Token[DXE_PERFORMANCE_STRING_SIZE]; ///< Measured token string name. CHAR8 Module[DXE_PERFORMANCE_STRING_SIZE]; ///< Module string name. UINT64 StartTimeStamp; ///< Start time point. UINT64 EndTimeStamp; ///< End time point. @@ -240,7 +215,7 @@ EFI_STATUS @param LogEntryKey The key for the previous performance measurement log entry. If 0, then the first performance measurement log entry is retrieved. @param GaugeDataEntry Out parameter for the indirect pointer to the gauge data entry specified by LogEntryKey. - + @retval EFI_SUCCESS The GuageDataEntry is successfully found based on LogEntryKey. @retval EFI_NOT_FOUND There is no entry after the measurement referred to by LogEntryKey. @retval EFI_INVALID_PARAMETER The LogEntryKey is not a valid entry, or GaugeDataEntry is NULL. @@ -335,7 +310,7 @@ EFI_STATUS @param LogEntryKey The key for the previous performance measurement log entry. If 0, then the first performance measurement log entry is retrieved. @param GaugeDataEntryEx Out parameter for the indirect pointer to the extented gauge data entry specified by LogEntryKey. - + @retval EFI_SUCCESS The GuageDataEntryEx is successfully found based on LogEntryKey. @retval EFI_NOT_FOUND There is no entry after the measurement referred to by LogEntryKey. @retval EFI_INVALID_PARAMETER The LogEntryKey is not a valid entry, or GaugeDataEntryEx is NULL.