#include <Ppi/SecPlatformInformation.h>\r
#include <Library/FspWrapperApiTestLib.h>\r
#include <FspEas.h>\r
+#include <FspStatusCode.h>\r
\r
extern EFI_GUID gFspHobGuid;\r
\r
TimeStampCounterStart = AsmReadTsc ();\r
Status = CallFspMemoryInit (FspmUpdDataPtr, &FspHobListPtr);\r
// Create hobs after memory initialization and not in temp RAM. Hence passing the recorded timestamp here\r
- PERF_START_EX(&gFspApiPerformanceGuid, "EventRec", NULL, TimeStampCounterStart, 0xD000);\r
- PERF_END_EX(&gFspApiPerformanceGuid, "EventRec", NULL, 0, 0xD07F);\r
+ PERF_START_EX(&gFspApiPerformanceGuid, "EventRec", NULL, TimeStampCounterStart, FSP_STATUS_CODE_MEMORY_INIT | FSP_STATUS_CODE_COMMON_CODE | FSP_STATUS_CODE_API_ENTRY);\r
+ PERF_END_EX(&gFspApiPerformanceGuid, "EventRec", NULL, 0, FSP_STATUS_CODE_MEMORY_INIT | FSP_STATUS_CODE_COMMON_CODE | FSP_STATUS_CODE_API_EXIT);\r
DEBUG ((DEBUG_INFO, "Total time spent executing FspMemoryInitApi: %d millisecond\n", DivU64x32 (GetTimeInNanoSecond (AsmReadTsc () - TimeStampCounterStart), 1000000)));\r
\r
//\r