]>
Commit | Line | Data |
---|---|---|
c7f33ca4 | 1 | /*++\r |
2 | \r | |
f57387d5 HT |
3 | Copyright (c) 2004, Intel Corporation. All rights reserved.<BR>\r |
4 | This program and the accompanying materials \r | |
c7f33ca4 | 5 | are licensed and made available under the terms and conditions of the BSD License \r |
6 | which accompanies this distribution. The full text of the license may be found at \r | |
7 | http://opensource.org/licenses/bsd-license.php \r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
11 | \r | |
12 | Module Name:\r | |
13 | \r | |
14 | PeiPerf.h\r | |
15 | \r | |
16 | Abstract:\r | |
17 | \r | |
18 | PeiPerf.h provides performance primitives for PEI modules\r | |
19 | \r | |
20 | \r | |
21 | --*/\r | |
22 | \r | |
23 | #ifndef _PEI_PERF_H_\r | |
24 | #define _PEI_PERF_H_\r | |
25 | \r | |
26 | VOID\r | |
27 | EFIAPI\r | |
28 | PeiPerfMeasure (\r | |
29 | EFI_PEI_SERVICES **PeiServices,\r | |
30 | IN UINT16 *Token,\r | |
31 | IN EFI_FFS_FILE_HEADER *FileHeader,\r | |
32 | IN BOOLEAN EntryExit,\r | |
33 | IN UINT64 Value\r | |
34 | )\r | |
35 | /*++\r | |
36 | \r | |
37 | Routine Description:\r | |
38 | \r | |
39 | Log a timestamp count.\r | |
40 | \r | |
41 | Arguments:\r | |
42 | \r | |
43 | PeiServices - Pointer to the PEI Core Services table\r | |
44 | \r | |
45 | Token - Pointer to Token Name\r | |
46 | \r | |
47 | FileHeader - Pointer to the file header\r | |
48 | \r | |
49 | EntryExit - Indicates start or stop measurement\r | |
50 | \r | |
51 | Value - The start time or the stop time\r | |
52 | \r | |
53 | Returns:\r | |
54 | \r | |
55 | --*/\r | |
56 | ;\r | |
57 | \r | |
58 | #ifdef EFI_PEI_PERFORMANCE\r | |
59 | #define PEI_PERF_START(Ps, Token, FileHeader, Value) PeiPerfMeasure (Ps, Token, FileHeader, FALSE, Value)\r | |
60 | #define PEI_PERF_END(Ps, Token, FileHeader, Value) PeiPerfMeasure (Ps, Token, FileHeader, TRUE, Value)\r | |
61 | #else\r | |
62 | #define PEI_PERF_START(Ps, Token, FileHeader, Value)\r | |
63 | #define PEI_PERF_END(Ps, Token, FileHeader, Value)\r | |
64 | #endif\r | |
65 | \r | |
66 | #endif\r |