]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Include/Guid/PeiPerformanceHob.h
Correct typo in comments, clean IfrSupportLib.h
[mirror_edk2.git] / MdeModulePkg / Include / Guid / PeiPerformanceHob.h
CommitLineData
1e354c03 1/** @file\r
5f597758 2 This file defines performance guid for the performance entry in the HOB list, \r
6426c8ff
LG
3 and define the PEI Performance HOB data structures. \r
4 This hob can be used to store the boot performance data of pei phase.\r
88f20127 5\r
6426c8ff 6Copyright (c) 2006 - 2009, Intel Corporation. <BR>\r
1e354c03 7All rights reserved. This program and the accompanying materials\r
8are licensed and made available under the terms and conditions of the BSD License\r
9which accompanies this distribution. The full text of the license may be found at\r
10http://opensource.org/licenses/bsd-license.php\r
88f20127 11\r
1e354c03 12THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
13WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
88f20127 14\r
1e354c03 15**/\r
88f20127 16\r
17#ifndef __PEI_PERFORMANCE_HOB_H__\r
18#define __PEI_PERFORMANCE_HOB_H__\r
19\r
20//\r
21// This is the GUID of PEI performance HOB\r
22//\r
23#define PEI_PERFORMANCE_HOB_GUID \\r
24 { 0xec4df5af, 0x4395, 0x4cc9, { 0x94, 0xde, 0x77, 0x50, 0x6d, 0x12, 0xc7, 0xb8 } }\r
25\r
26//\r
27// PEI_PERFORMANCE_STRING_SIZE must be a multiple of 8.\r
28//\r
29#define PEI_PERFORMANCE_STRING_SIZE 8\r
30#define PEI_PERFORMANCE_STRING_LENGTH (PEI_PERFORMANCE_STRING_SIZE - 1)\r
31\r
32typedef struct {\r
33 EFI_PHYSICAL_ADDRESS Handle;\r
6426c8ff
LG
34 CHAR8 Token[PEI_PERFORMANCE_STRING_SIZE]; ///> Measured token string name \r
35 CHAR8 Module[PEI_PERFORMANCE_STRING_SIZE]; ///> Module string name\r
36 UINT64 StartTimeStamp; ///> Start time point\r
37 UINT64 EndTimeStamp; ///> End time point\r
88f20127 38} PEI_PERFORMANCE_LOG_ENTRY;\r
39\r
40//\r
41// The header must be aligned at 8 bytes.\r
42// \r
43typedef struct {\r
6426c8ff 44 UINT32 NumberOfEntries; ///> The number of all performance log entries\r
ebafc55b 45 UINT32 Reserved;\r
88f20127 46} PEI_PERFORMANCE_LOG_HEADER;\r
47\r
48\r
49extern EFI_GUID gPeiPerformanceHobGuid;\r
50\r
51#endif\r