AMD IOMMU: add stats counter for single iommu domain tlb flushes

Impact: see number of single iommu domain tlb flushes in debugfs

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>

+4
+4
arch/x86/kernel/amd_iommu.c
··· 72 72 DECLARE_STATS_COUNTER(cnt_alloc_coherent); 73 73 DECLARE_STATS_COUNTER(cnt_free_coherent); 74 74 DECLARE_STATS_COUNTER(cross_page); 75 + DECLARE_STATS_COUNTER(domain_flush_single); 75 76 76 77 static struct dentry *stats_dir; 77 78 static struct dentry *de_isolate; ··· 107 106 amd_iommu_stats_add(&cnt_alloc_coherent); 108 107 amd_iommu_stats_add(&cnt_free_coherent); 109 108 amd_iommu_stats_add(&cross_page); 109 + amd_iommu_stats_add(&domain_flush_single); 110 110 } 111 111 112 112 #endif ··· 414 412 static void iommu_flush_tlb(struct amd_iommu *iommu, u16 domid) 415 413 { 416 414 u64 address = CMD_INV_IOMMU_ALL_PAGES_ADDRESS; 415 + 416 + INC_STATS_COUNTER(domain_flush_single); 417 417 418 418 iommu_queue_inv_iommu_pages(iommu, address, domid, 0, 1); 419 419 }