AMD IOMMU: add statistics about total number of map requests

Impact: see total number of map requests in debugfs

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

+4
+4
arch/x86/kernel/amd_iommu.c
··· 75 75 DECLARE_STATS_COUNTER(domain_flush_single); 76 76 DECLARE_STATS_COUNTER(domain_flush_all); 77 77 DECLARE_STATS_COUNTER(alloced_io_mem); 78 + DECLARE_STATS_COUNTER(total_map_requests); 78 79 79 80 static struct dentry *stats_dir; 80 81 static struct dentry *de_isolate; ··· 113 112 amd_iommu_stats_add(&domain_flush_single); 114 113 amd_iommu_stats_add(&domain_flush_all); 115 114 amd_iommu_stats_add(&alloced_io_mem); 115 + amd_iommu_stats_add(&total_map_requests); 116 116 } 117 117 118 118 #endif ··· 1230 1228 1231 1229 pages = iommu_num_pages(paddr, size, PAGE_SIZE); 1232 1230 paddr &= PAGE_MASK; 1231 + 1232 + INC_STATS_COUNTER(total_map_requests); 1233 1233 1234 1234 if (pages > 1) 1235 1235 INC_STATS_COUNTER(cross_page);