3 Copyright (c) 2004, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
21 #ifndef _EFI_PERFORMANCE_H_
22 #define _EFI_PERFORMANCE_H_
24 #define EFI_PERFORMANCE_PROTOCOL_GUID \
25 { 0xFFECFFFF, 0x923C, 0x14d2, {0x9E, 0x3F, 0x22, 0xA0, 0xC9, 0x69, 0x56, 0x3B} }
27 #define EFI_NULL_GUID \
28 { 0x00000000, 0x0000, 0x0000, {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00} }
31 EFI_FORWARD_DECLARATION (EFI_PERFORMANCE_PROTOCOL
);
33 #define DXE_TOK L"DXE"
34 #define SHELL_TOK L"SHELL"
35 #define PEI_TOK L"PEI"
36 #define BDS_TOK L"BDS"
37 #define DRIVERBINDING_START_TOK L"DriverBinding:Start"
38 #define DRIVERBINDING_SUPPORT_TOK L"DriverBinding:Support"
39 #define START_IMAGE_TOK L"StartImage"
40 #define LOAD_IMAGE_TOK L"LoadImage"
46 #define EFI_PERF_TOKEN_LENGTH 32
47 #define EFI_PERF_HOST_LENGTH 32
48 #define EFI_PERF_PDBFILENAME_LENGTH 28
52 UINT16 Token
[EFI_PERF_TOKEN_LENGTH
];
53 UINT16 Host
[EFI_PERF_HOST_LENGTH
];
57 CHAR8 PdbFileName
[EFI_PERF_PDBFILENAME_LENGTH
];
64 (EFIAPI
* EFI_PERF_START_GAUGE
) (
65 IN EFI_PERFORMANCE_PROTOCOL
*This
,
74 (EFIAPI
* EFI_PERF_END_GAUGE
) (
75 IN EFI_PERFORMANCE_PROTOCOL
*This
,
85 (EFIAPI
* EFI_PERF_GET_GAUGE
) (
86 IN EFI_PERFORMANCE_PROTOCOL
*This
,
90 IN EFI_GAUGE_DATA
*PrevGauge
94 struct _EFI_PERFORMANCE_PROTOCOL
{
95 EFI_PERF_START_GAUGE StartGauge
;
96 EFI_PERF_END_GAUGE EndGauge
;
97 EFI_PERF_GET_GAUGE GetGauge
;
100 extern EFI_GUID gEfiPerformanceProtocolGuid
;