Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125641
b: refs/heads/master
c: 8ecaf8f
h: refs/heads/master
i:
  125639: 3f845ee
v: v3
  • Loading branch information
Joerg Roedel committed Jan 3, 2009
1 parent 39ac243 commit 838633b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5774f7c5fef2526bfa58eab628fbe91dce5e07b1
refs/heads/master: 8ecaf8f19f0f0627d6ac6d69ed9472e7d307f35b
4 changes: 4 additions & 0 deletions trunk/arch/x86/kernel/amd_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ DECLARE_STATS_COUNTER(cross_page);
DECLARE_STATS_COUNTER(domain_flush_single);
DECLARE_STATS_COUNTER(domain_flush_all);
DECLARE_STATS_COUNTER(alloced_io_mem);
DECLARE_STATS_COUNTER(total_map_requests);

static struct dentry *stats_dir;
static struct dentry *de_isolate;
Expand Down Expand Up @@ -112,6 +113,7 @@ static void amd_iommu_stats_init(void)
amd_iommu_stats_add(&domain_flush_single);
amd_iommu_stats_add(&domain_flush_all);
amd_iommu_stats_add(&alloced_io_mem);
amd_iommu_stats_add(&total_map_requests);
}

#endif
Expand Down Expand Up @@ -1229,6 +1231,8 @@ static dma_addr_t __map_single(struct device *dev,
pages = iommu_num_pages(paddr, size, PAGE_SIZE);
paddr &= PAGE_MASK;

INC_STATS_COUNTER(total_map_requests);

if (pages > 1)
INC_STATS_COUNTER(cross_page);

Expand Down

0 comments on commit 838633b

Please sign in to comment.