]>
git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Foundation/Include/Pei/PeiPerf.h
3 Copyright (c) 2004, Intel Corporation. All rights reserved.<BR>
4 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.
18 PeiPerf.h provides performance primitives for PEI modules
29 EFI_PEI_SERVICES
**PeiServices
,
31 IN EFI_FFS_FILE_HEADER
*FileHeader
,
39 Log a timestamp count.
43 PeiServices - Pointer to the PEI Core Services table
45 Token - Pointer to Token Name
47 FileHeader - Pointer to the file header
49 EntryExit - Indicates start or stop measurement
51 Value - The start time or the stop time
58 #ifdef EFI_PEI_PERFORMANCE
59 #define PEI_PERF_START(Ps, Token, FileHeader, Value) PeiPerfMeasure (Ps, Token, FileHeader, FALSE, Value)
60 #define PEI_PERF_END(Ps, Token, FileHeader, Value) PeiPerfMeasure (Ps, Token, FileHeader, TRUE, Value)
62 #define PEI_PERF_START(Ps, Token, FileHeader, Value)
63 #define PEI_PERF_END(Ps, Token, FileHeader, Value)