Changeset 87293 in vbox
- Timestamp:
- Jan 18, 2021 8:36:08 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevIommuAmd.cpp
r86984 r87293 327 327 STAMCOUNTER StatCmdCompletePprReq; /**< Number of Complete PPR Requests commands processed. */ 328 328 STAMCOUNTER StatCmdInvIommuAll; /**< Number of Invalidate IOMMU All commands processed. */ 329 330 STAMPROFILEADV StatDteLookup; /**< Profiling of device table entry lookup (uncached). */ 329 331 /** @} */ 330 332 #endif … … 2650 2652 { 2651 2653 PIOMMU pThis = PDMDEVINS_2_DATA(pDevIns, PIOMMU); 2654 STAM_PROFILE_ADV_START(&pThis->StatDteLookup, a); 2652 2655 2653 2656 /* Read the device table entry from memory. */ … … 2663 2666 /** @todo IOMMU: Add to IOLTB cache. */ 2664 2667 *pGCPhysSpa = uIova; 2668 STAM_PROFILE_ADV_STOP(&pThis->StatDteLookup, a); 2665 2669 return VINF_SUCCESS; 2666 2670 } … … 2678 2682 iommuAmdInitIllegalDteEvent(uDevId, uIova, true /* fRsvdNotZero */, enmOp, &Event); 2679 2683 iommuAmdRaiseIllegalDteEvent(pDevIns, enmOp, &Event, kIllegalDteType_RsvdNotZero); 2684 STAM_PROFILE_ADV_STOP(&pThis->StatDteLookup, a); 2680 2685 return VERR_IOMMU_ADDR_TRANSLATION_FAILED; 2681 2686 } … … 2689 2694 /** @todo IOMMU: Add to IOLTB cache. */ 2690 2695 *pGCPhysSpa = uIova; 2696 STAM_PROFILE_ADV_STOP(&pThis->StatDteLookup, a); 2691 2697 return VINF_SUCCESS; 2692 2698 } … … 2739 2745 uBaseIova, fAccess, rc)); 2740 2746 *pGCPhysSpa = NIL_RTGCPHYS; 2747 STAM_PROFILE_ADV_STOP(&pThis->StatDteLookup, a); 2741 2748 return rc; 2742 2749 } 2743 2750 } 2744 2751 2752 STAM_PROFILE_ADV_STOP(&pThis->StatDteLookup, a); 2745 2753 return rc; 2746 2754 } 2747 2755 2748 2756 LogFunc(("Failed to read device table entry. uDevId=%#x rc=%Rrc\n", uDevId, rc)); 2757 STAM_PROFILE_ADV_STOP(&pThis->StatDteLookup, a); 2749 2758 return VERR_IOMMU_ADDR_TRANSLATION_FAILED; 2750 2759 } … … 4732 4741 PDMDevHlpSTAMRegister(pDevIns, &pThis->StatCmdCompletePprReq, STAMTYPE_COUNTER, "R3/Commands/CompletePprReq", STAMUNIT_OCCURENCES, "Number of Complete PPR Requests commands processed."); 4733 4742 PDMDevHlpSTAMRegister(pDevIns, &pThis->StatCmdInvIommuAll, STAMTYPE_COUNTER, "R3/Commands/InvIommuAll", STAMUNIT_OCCURENCES, "Number of Invalidate IOMMU All commands processed."); 4743 4744 PDMDevHlpSTAMRegister(pDevIns, &pThis->StatDteLookup, STAMTYPE_PROFILE, "DteLookup", STAMUNIT_TICKS_PER_CALL, "Profiling device table entry lookup (uncached)."); 4734 4745 # endif 4735 4746
Note:
See TracChangeset
for help on using the changeset viewer.