]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLibInternal.h
MdeModulePkg: Apply uncrustify changes
[mirror_edk2.git] / MdeModulePkg / Library / DxeCorePerformanceLib / DxeCorePerformanceLibInternal.h
... / ...
CommitLineData
1/** @file\r
2 Master header files for DxeCorePerformanceLib instance.\r
3\r
4 This header file holds the prototypes of the Performance and PerformanceEx Protocol published by this\r
5 library instance at its constructor.\r
6\r
7Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
8SPDX-License-Identifier: BSD-2-Clause-Patent\r
9\r
10**/\r
11\r
12#ifndef _DXE_CORE_PERFORMANCE_LIB_INTERNAL_H_\r
13#define _DXE_CORE_PERFORMANCE_LIB_INTERNAL_H_\r
14\r
15#include <PiDxe.h>\r
16\r
17#include <Guid/Performance.h>\r
18#include <Guid/PerformanceMeasurement.h>\r
19#include <Guid/ExtendedFirmwarePerformance.h>\r
20#include <Guid/ZeroGuid.h>\r
21#include <Guid/EventGroup.h>\r
22#include <Guid/FirmwarePerformance.h>\r
23#include <Guid/PiSmmCommunicationRegionTable.h>\r
24\r
25#include <Protocol/DriverBinding.h>\r
26#include <Protocol/LoadedImage.h>\r
27#include <Protocol/ComponentName2.h>\r
28#include <Protocol/DevicePathToText.h>\r
29#include <Protocol/SmmCommunication.h>\r
30\r
31#include <Library/PerformanceLib.h>\r
32#include <Library/DebugLib.h>\r
33#include <Library/HobLib.h>\r
34#include <Library/BaseLib.h>\r
35#include <Library/BaseMemoryLib.h>\r
36#include <Library/TimerLib.h>\r
37#include <Library/PcdLib.h>\r
38#include <Library/DevicePathLib.h>\r
39#include <Library/UefiBootServicesTableLib.h>\r
40#include <Library/UefiRuntimeServicesTableLib.h>\r
41#include <Library/MemoryAllocationLib.h>\r
42#include <Library/UefiLib.h>\r
43#include <Library/ReportStatusCodeLib.h>\r
44#include <Library/DxeServicesLib.h>\r
45#include <Library/PeCoffGetEntryPointLib.h>\r
46\r
47/**\r
48 Create performance record with event description and a timestamp.\r
49\r
50 @param CallerIdentifier - Image handle or pointer to caller ID GUID.\r
51 @param Guid - Pointer to a GUID.\r
52 @param String - Pointer to a string describing the measurement.\r
53 @param TimeStamp - 64-bit time stamp.\r
54 @param Address - Pointer to a location in memory relevant to the measurement.\r
55 @param Identifier - Performance identifier describing the type of measurement.\r
56 @param Attribute - The attribute of the measurement. According to attribute can create a start\r
57 record for PERF_START/PERF_START_EX, or a end record for PERF_END/PERF_END_EX,\r
58 or a general record for other Perf macros.\r
59\r
60 @retval EFI_SUCCESS - Successfully created performance record.\r
61 @retval EFI_OUT_OF_RESOURCES - Ran out of space to store the records.\r
62 @retval EFI_INVALID_PARAMETER - Invalid parameter passed to function - NULL\r
63 pointer or invalid PerfId.\r
64**/\r
65EFI_STATUS\r
66EFIAPI\r
67CreatePerformanceMeasurement (\r
68 IN CONST VOID *CallerIdentifier OPTIONAL,\r
69 IN CONST VOID *Guid OPTIONAL,\r
70 IN CONST CHAR8 *String OPTIONAL,\r
71 IN UINT64 TimeStamp OPTIONAL,\r
72 IN UINT64 Address OPTIONAL,\r
73 IN UINT32 Identifier,\r
74 IN PERF_MEASUREMENT_ATTRIBUTE Attribute\r
75 );\r
76\r
77#endif\r