summaryrefslogtreecommitdiffstats
path: root/SecurityPkg/Tcg/Tcg2Pei
diff options
context:
space:
mode:
authorDandan Bi <dandan.bi@intel.com>2018-07-17 13:09:02 +0800
committerLiming Gao <liming.gao@intel.com>2018-07-26 13:37:59 +0800
commitd9c5beb159c4b54ba14e3ad731d0e69a2e85c6c0 (patch)
tree65b2be1d829271a8c25c4be124507c6737b231b4 /SecurityPkg/Tcg/Tcg2Pei
parent05aba7e37b06d035b2fbae280c6b4e3f7d2f28ba (diff)
downloadedk2-d9c5beb159c4b54ba14e3ad731d0e69a2e85c6c0.tar.gz
edk2-d9c5beb159c4b54ba14e3ad731d0e69a2e85c6c0.tar.bz2
edk2-d9c5beb159c4b54ba14e3ad731d0e69a2e85c6c0.zip
SecurityPkg/Tcg: Add use case for new Perf macro
Add an example case for the usage of PERF_CALLBACK_BEGIN/PERF_CALLBACK_END Cc: Liming Gao <liming.gao@intel.com> Cc: Chao Zhang <chao.b.zhang@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Chao Zhang<chao.b.zhang@intel.com>
Diffstat (limited to 'SecurityPkg/Tcg/Tcg2Pei')
-rw-r--r--SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c b/SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c
index 74cdd1fa88..09ef0c70a5 100644
--- a/SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c
+++ b/SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c
@@ -161,6 +161,8 @@ EndofPeiSignalNotifyCallBack (
MeasuredHobData = NULL;
+ PERF_CALLBACK_BEGIN (&gEfiEndOfPeiSignalPpiGuid);
+
//
// Create a Guid hob to save all measured Fv
//
@@ -186,6 +188,8 @@ EndofPeiSignalNotifyCallBack (
CopyMem (&MeasuredHobData->MeasuredFvBuf[mMeasuredBaseFvIndex] , mMeasuredChildFvInfo, sizeof(EFI_PLATFORM_FIRMWARE_BLOB) * (mMeasuredChildFvIndex));
}
+ PERF_CALLBACK_END (&gEfiEndOfPeiSignalPpiGuid);
+
return EFI_SUCCESS;
}