EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index

EdkCompatibilityPkg/Foundation/Include/Pei/PeiPerf.h

Go to the documentation of this file.
00001 /*++
00002 
00003 Copyright (c) 2004, Intel Corporation. All rights reserved.<BR>
00004 This program and the accompanying materials                          
00005 are licensed and made available under the terms and conditions of the BSD License         
00006 which accompanies this distribution.  The full text of the license may be found at        
00007 http://opensource.org/licenses/bsd-license.php                                            
00008                                                                                           
00009 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     
00010 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             
00011 
00012 Module Name:
00013 
00014  PeiPerf.h
00015 
00016 Abstract:
00017  
00018  PeiPerf.h provides performance primitives for PEI modules
00019 
00020  
00021 --*/
00022 
00023 #ifndef _PEI_PERF_H_
00024 #define _PEI_PERF_H_
00025 
00026 VOID
00027 EFIAPI
00028 PeiPerfMeasure (
00029   EFI_PEI_SERVICES              **PeiServices,
00030   IN UINT16                     *Token,
00031   IN EFI_FFS_FILE_HEADER        *FileHeader,
00032   IN BOOLEAN                    EntryExit,
00033   IN UINT64                     Value
00034   )
00035 /*++
00036 
00037 Routine Description:
00038 
00039   Log a timestamp count.
00040 
00041 Arguments:
00042 
00043   PeiServices - Pointer to the PEI Core Services table
00044   
00045   Token       - Pointer to Token Name
00046   
00047   FileHeader  - Pointer to the file header
00048 
00049   EntryExit   - Indicates start or stop measurement
00050 
00051   Value       - The start time or the stop time
00052 
00053 Returns:
00054 
00055 --*/
00056 ;
00057 
00058 #ifdef EFI_PEI_PERFORMANCE
00059 #define PEI_PERF_START(Ps, Token, FileHeader, Value)  PeiPerfMeasure (Ps, Token, FileHeader, FALSE, Value)
00060 #define PEI_PERF_END(Ps, Token, FileHeader, Value)    PeiPerfMeasure (Ps, Token, FileHeader, TRUE, Value)
00061 #else
00062 #define PEI_PERF_START(Ps, Token, FileHeader, Value)
00063 #define PEI_PERF_END(Ps, Token, FileHeader, Value)
00064 #endif
00065 
00066 #endif
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines