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