From: Bret Barkelew <bret.barke...@microsoft.com> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1888
Use PERF_FUNCTION_BEGIN and PERF_FUNCTION_END to replace PERF_START_EX and PERF_FUNCTION_END. Cc: Chao Zhang <chao.b.zh...@intel.com> Cc: Jiewen Yao <jiewen....@intel.com> Cc: Jian Wang <jian.j.w...@intel.com> Signed-off-by: Zhichao Gao <zhichao....@intel.com> --- SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c b/SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c index f28f33fdec..4b5388726c 100644 --- a/SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c +++ b/SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c @@ -1,7 +1,7 @@ /** @file Initialize TPM2 device and measure FVs before handing off control to DXE. -Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR> +Copyright (c) 2015 - 2019, Intel Corporation. All rights reserved.<BR> Copyright (c) 2017, Microsoft Corporation. All rights reserved. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent @@ -38,8 +38,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent #include <Library/ReportStatusCodeLib.h> #include <Library/ResetSystemLib.h> -#define PERF_ID_TCG2_PEI 0x3080 - typedef struct { EFI_GUID *EventGuid; EFI_TCG2_EVENT_LOG_FORMAT LogFormat; @@ -651,7 +649,7 @@ MeasureMainBios ( EFI_FV_INFO VolumeInfo; EFI_PEI_FIRMWARE_VOLUME_PPI *FvPpi; - PERF_START_EX (mFileHandle, "EventRec", "Tcg2Pei", 0, PERF_ID_TCG2_PEI); + PERF_FUNCTION_BEGIN (); // // Only measure BFV at the very beginning. Other parts of Static Core Root of @@ -682,7 +680,7 @@ MeasureMainBios ( Status = MeasureFvImage ((EFI_PHYSICAL_ADDRESS) (UINTN) VolumeInfo.FvStart, VolumeInfo.FvSize); - PERF_END_EX (mFileHandle, "EventRec", "Tcg2Pei", 0, PERF_ID_TCG2_PEI + 1); + PERF_FUNCTION_END (); return Status; } -- 2.21.0.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#42072): https://edk2.groups.io/g/devel/message/42072 Mute This Topic: https://groups.io/mt/32001831/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-