+++ /dev/null
-/*++\r
-\r
-Copyright (c) 2004, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
-\r
-Module Name:\r
-\r
- PeiPerf.h\r
-\r
-Abstract:\r
- \r
- PeiPerf.h provides performance primitives for PEI modules\r
-\r
- \r
---*/\r
-\r
-#ifndef _PEI_PERF_H_\r
-#define _PEI_PERF_H_\r
-\r
-VOID\r
-EFIAPI\r
-PeiPerfMeasure (\r
- EFI_PEI_SERVICES **PeiServices,\r
- IN UINT16 *Token,\r
- IN EFI_FFS_FILE_HEADER *FileHeader,\r
- IN BOOLEAN EntryExit,\r
- IN UINT64 Value\r
- )\r
-/*++\r
-\r
-Routine Description:\r
-\r
- Log a timestamp count.\r
-\r
-Arguments:\r
-\r
- PeiServices - Pointer to the PEI Core Services table\r
- \r
- Token - Pointer to Token Name\r
- \r
- FileHeader - Pointer to the file header\r
-\r
- EntryExit - Indicates start or stop measurement\r
-\r
- Value - The start time or the stop time\r
-\r
-Returns:\r
-\r
---*/\r
-;\r
-\r
-#ifdef EFI_PEI_PERFORMANCE\r
-#define PEI_PERF_START(Ps, Token, FileHeader, Value) PeiPerfMeasure (Ps, Token, FileHeader, FALSE, Value)\r
-#define PEI_PERF_END(Ps, Token, FileHeader, Value) PeiPerfMeasure (Ps, Token, FileHeader, TRUE, Value)\r
-#else\r
-#define PEI_PERF_START(Ps, Token, FileHeader, Value)\r
-#define PEI_PERF_END(Ps, Token, FileHeader, Value)\r
-#endif\r
-\r
-#endif\r