Lines Matching refs:CpuIndex

160   UINTN  CpuIndex,  in GetSourceFromDestinationOnBts()  argument
170 CurrentBTSRecord = (BRANCH_TRACE_RECORD *)mMsrDsArea[CpuIndex]->BTSIndex; in GetSourceFromDestinationOnBts()
172 if ((UINTN)CurrentBTSRecord < (UINTN)mMsrBTSRecord[CpuIndex]) { in GetSourceFromDestinationOnBts()
176 … CurrentBTSRecord = (BRANCH_TRACE_RECORD *)((UINTN)mMsrDsArea[CpuIndex]->BTSAbsoluteMaximum - 1); in GetSourceFromDestinationOnBts()
216 UINTN CpuIndex; in DebugExceptionHandler() local
222 CpuIndex = GetCpuIndex (); in DebugExceptionHandler()
227 for (PFEntry = 0; PFEntry < mPFEntryCount[CpuIndex]; PFEntry++) { in DebugExceptionHandler()
228 *mLastPFEntryPointer[CpuIndex][PFEntry] = mLastPFEntryValue[CpuIndex][PFEntry]; in DebugExceptionHandler()
234 mPFEntryCount[CpuIndex] = 0; in DebugExceptionHandler()
1034 IN UINTN CpuIndex in ActivateBTS() argument
1044 AsmWriteMsr64 (MSR_DS_AREA, (UINT64)(UINTN)mMsrDsArea[CpuIndex]); in ActivateBTS()
1072 IN UINTN CpuIndex in ActivateSmmProfile() argument
1089 ActivateBTS (CpuIndex); in ActivateSmmProfile()
1142 UINTN CpuIndex, in RestorePageTableBelow4G() argument
1179 ASSERT (mPFEntryCount[CpuIndex] < MAX_PF_ENTRY_COUNT); in RestorePageTableBelow4G()
1180 if (mPFEntryCount[CpuIndex] < MAX_PF_ENTRY_COUNT) { in RestorePageTableBelow4G()
1181 PFIndex = mPFEntryCount[CpuIndex]; in RestorePageTableBelow4G()
1182 mLastPFEntryValue[CpuIndex][PFIndex] = PageTable[PTIndex]; in RestorePageTableBelow4G()
1183 mLastPFEntryPointer[CpuIndex][PFIndex] = &PageTable[PTIndex]; in RestorePageTableBelow4G()
1184 mPFEntryCount[CpuIndex]++; in RestorePageTableBelow4G()
1213 ASSERT (mPFEntryCount[CpuIndex] < MAX_PF_ENTRY_COUNT); in RestorePageTableBelow4G()
1214 if (mPFEntryCount[CpuIndex] < MAX_PF_ENTRY_COUNT) { in RestorePageTableBelow4G()
1215 PFIndex = mPFEntryCount[CpuIndex]; in RestorePageTableBelow4G()
1216 mLastPFEntryValue[CpuIndex][PFIndex] = PageTable[PTIndex]; in RestorePageTableBelow4G()
1217 mLastPFEntryPointer[CpuIndex][PFIndex] = &PageTable[PTIndex]; in RestorePageTableBelow4G()
1218 mPFEntryCount[CpuIndex]++; in RestorePageTableBelow4G()
1247 UINTN CpuIndex; in SmmProfilePFHandler() local
1274 CpuIndex = GetCpuIndex (); in SmmProfilePFHandler()
1277 RestorePageTableBelow4G (PageTable, PFAddress, CpuIndex, ErrorCode); in SmmProfilePFHandler()
1279 RestorePageTableAbove4G (PageTable, PFAddress, CpuIndex, ErrorCode, &IsValidPFAddress); in SmmProfilePFHandler()
1288 InstructionAddress = GetSourceFromDestinationOnBts (CpuIndex, Rip); in SmmProfilePFHandler()
1324 (SmmProfileEntry[Index].CpuNum == (UINT64)CpuIndex) && in SmmProfilePFHandler()
1346 SmmProfileEntry[CurrentEntryNumber].CpuNum = (UINT64)CpuIndex; in SmmProfilePFHandler()