]> Git Repo - qemu.git/commitdiff
sun4u_iommu: add trace event for IOMMU translations
authorMark Cave-Ayland <[email protected]>
Mon, 8 Jan 2018 18:16:34 +0000 (18:16 +0000)
committerMark Cave-Ayland <[email protected]>
Tue, 9 Jan 2018 21:48:20 +0000 (21:48 +0000)
Signed-off-by: Mark Cave-Ayland <[email protected]>
Acked-by: Artyom Tarasenko <[email protected]>
hw/sparc64/sun4u_iommu.c
hw/sparc64/trace-events

index 51fbc394ce3265b42d0a922e8d554fea15c8a07b..4cf8e69be9ce36550bcc8b052763c2d63eb95f38 100644 (file)
@@ -184,6 +184,8 @@ static IOMMUTLBEntry sun4u_translate_iommu(IOMMUMemoryRegion *iommu,
         ret.addr_mask = (IOMMU_PAGE_SIZE_8K - 1);
     }
 
+    trace_sun4u_iommu_translate(ret.iova, ret.translated_addr, tte);
+
     return ret;
 }
 
index 052352feea187c172eb5760436eba950233ba853..2ee2d75f70d22ed5cf95bab130485025cee9abf2 100644 (file)
@@ -6,3 +6,4 @@ ebus_isa_irq_handler(int n, int level) "Set ISA IRQ %d level %d"
 # hw/sparc64/sun4u_iommu.c
 sun4u_iommu_mem_read(uint64_t addr, uint64_t val, int size) "addr: 0x%"PRIx64" val: 0x%"PRIx64" size: %d"
 sun4u_iommu_mem_write(uint64_t addr, uint64_t val, int size) "addr: 0x%"PRIx64" val: 0x%"PRIx64" size: %d"
+sun4u_iommu_translate(uint64_t addr, uint64_t trans_addr, uint64_t tte) "xlate 0x%"PRIx64" => pa 0x%"PRIx64" tte: 0x%"PRIx64
This page took 0.027237 seconds and 4 git commands to generate.