AMD IOMMU: add stats counter for domain tlb flushes

Impact: see number of domain tlb flushes in debugfs

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

+4
+4
arch/x86/kernel/amd_iommu.c
··· 73 DECLARE_STATS_COUNTER(cnt_free_coherent); 74 DECLARE_STATS_COUNTER(cross_page); 75 DECLARE_STATS_COUNTER(domain_flush_single); 76 77 static struct dentry *stats_dir; 78 static struct dentry *de_isolate; ··· 109 amd_iommu_stats_add(&cnt_free_coherent); 110 amd_iommu_stats_add(&cross_page); 111 amd_iommu_stats_add(&domain_flush_single); 112 } 113 114 #endif ··· 432 unsigned long flags; 433 struct amd_iommu *iommu; 434 struct iommu_cmd cmd; 435 436 __iommu_build_inv_iommu_pages(&cmd, CMD_INV_IOMMU_ALL_PAGES_ADDRESS, 437 domid, 1, 1);
··· 73 DECLARE_STATS_COUNTER(cnt_free_coherent); 74 DECLARE_STATS_COUNTER(cross_page); 75 DECLARE_STATS_COUNTER(domain_flush_single); 76 + DECLARE_STATS_COUNTER(domain_flush_all); 77 78 static struct dentry *stats_dir; 79 static struct dentry *de_isolate; ··· 108 amd_iommu_stats_add(&cnt_free_coherent); 109 amd_iommu_stats_add(&cross_page); 110 amd_iommu_stats_add(&domain_flush_single); 111 + amd_iommu_stats_add(&domain_flush_all); 112 } 113 114 #endif ··· 430 unsigned long flags; 431 struct amd_iommu *iommu; 432 struct iommu_cmd cmd; 433 + 434 + INC_STATS_COUNTER(domain_flush_all); 435 436 __iommu_build_inv_iommu_pages(&cmd, CMD_INV_IOMMU_ALL_PAGES_ADDRESS, 437 domid, 1, 1);