TianoCore EDK2 master
Loading...
Searching...
No Matches
PerformanceMeasurement.h
Go to the documentation of this file.
1
11#ifndef _PERFORMANCE_MEASUREMENT_H_
12#define _PERFORMANCE_MEASUREMENT_H_
13
14//
15// GUID for Performance measurement Protocol
16//
17#define PERFORMANCE_MEASUREMENT_PROTOCOL_GUID \
18 { 0xc85d06be, 0x5f75, 0x48ce, {0xa8, 0x0f, 0x12, 0x36, 0xba, 0x3b, 0x87, 0xb1 } }
19
20#define SMM_PERFORMANCE_MEASUREMENT_PROTOCOL_GUID \
21 { 0xd56b6d73, 0x1a7b, 0x4015, {0x9b, 0xb4, 0x7b, 0x07, 0x17, 0x29, 0xed, 0x24 } }
22
24
25typedef enum {
26 PerfStartEntry, // used in StartPerformanceMeasurement()/StartPerformanceMeasurementEx()
27 // (map to PERF_START/PERF_START_EX)
28 PerfEndEntry, // used in EndPerformanceMeasurement()/EndPerformanceMeasurementEx()
29 // (map to PERF_END/PERF_END_EX)
30 PerfEntry // used in LogPerformanceMeasurement()
31 // (map to other Perf macros except above 4 macros)
32} PERF_MEASUREMENT_ATTRIBUTE;
33
53typedef
56 IN CONST VOID *CallerIdentifier OPTIONAL,
57 IN CONST VOID *Guid OPTIONAL,
58 IN CONST CHAR8 *String OPTIONAL,
59 IN UINT64 TimeStamp OPTIONAL,
60 IN UINT64 Address OPTIONAL,
61 IN UINT32 Identifier,
62 IN PERF_MEASUREMENT_ATTRIBUTE Attribute
63 );
64
66 CREATE_PERFORMANCE_MEASUREMENT CreatePerformanceMeasurement;
67};
68
69extern EFI_GUID gEdkiiPerformanceMeasurementProtocolGuid;
70extern EFI_GUID gEdkiiSmmPerformanceMeasurementProtocolGuid;
71
72#endif // _PERFORMANCE_MEASUREMENT_H_
#define CONST
Definition: Base.h:259
#define OPTIONAL
Definition: Base.h:290
#define IN
Definition: Base.h:279
EFI_STATUS(EFIAPI * CREATE_PERFORMANCE_MEASUREMENT)(IN CONST VOID *CallerIdentifier OPTIONAL, IN CONST VOID *Guid OPTIONAL, IN CONST CHAR8 *String OPTIONAL, IN UINT64 TimeStamp OPTIONAL, IN UINT64 Address OPTIONAL, IN UINT32 Identifier, IN PERF_MEASUREMENT_ATTRIBUTE Attribute)
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
Definition: Base.h:213