summaryrefslogtreecommitdiffstats
path: root/drivers/iommu
diff options
context:
space:
mode:
authorShuah Khan <shuah.kh@samsung.com>2013-08-15 11:59:29 -0600
committerJoerg Roedel <joro@8bytes.org>2013-09-24 12:35:26 +0200
commit3a50639ca4684476a69314811d89622d78c09448 (patch)
treefab49d021bad6abc75269bd5a36be0159188fea0 /drivers/iommu
parente0be7c867882320b65714a4386760382196dc7e8 (diff)
downloadlinux-3a50639ca4684476a69314811d89622d78c09448.tar.gz
linux-3a50639ca4684476a69314811d89622d78c09448.tar.bz2
linux-3a50639ca4684476a69314811d89622d78c09448.zip
iommu: Change iommu driver to call unmap trace event
Change iommu driver to call unmap trace event. This iommu_map_unmap class event can be enabled to trigger when iommu unmap iommu ops is called. Trace information includes iova, physical address (map event only), and size. Testing: Added trace calls to iommu_prepare_identity_map() for testing some of the conditions that are hard to trigger. Here is the trace from the testing: swapper/0-1 [003] .... 1.854102: unmap: IOMMU: iova=0x00000000cb800000 size=0x400 Signed-off-by: Shuah Khan <shuah.kh@samsung.com> Signed-off-by: Joerg Roedel <joro@8bytes.org>
Diffstat (limited to 'drivers/iommu')
-rw-r--r--drivers/iommu/iommu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c
index ea49fe814026..d8c53c7a7ec1 100644
--- a/drivers/iommu/iommu.c
+++ b/drivers/iommu/iommu.c
@@ -892,6 +892,7 @@ size_t iommu_unmap(struct iommu_domain *domain, unsigned long iova, size_t size)
unmapped += unmapped_page;
}
+ trace_unmap(iova, 0, size);
return unmapped;
}
EXPORT_SYMBOL_GPL(iommu_unmap);