]> Pileus Git - ~andy/linux/commit
iommu: Change iommu driver to call map trace event
authorShuah Khan <shuah.kh@samsung.com>
Thu, 15 Aug 2013 17:59:28 +0000 (11:59 -0600)
committerJoerg Roedel <joro@8bytes.org>
Tue, 24 Sep 2013 10:35:26 +0000 (12:35 +0200)
commite0be7c867882320b65714a4386760382196dc7e8
tree979bd58ff375bf1dbf05a380118fc33dafa129f8
parent699806302d8ac7dfb7d46e20da0ecd4317418d1d
iommu: Change iommu driver to call map trace event

Change iommu driver to call map trace event. This iommu_map_unmap class event
can be enabled to trigger when iommu map 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: map: IOMMU: iova=0x00000000cb800000 paddr=0x00000000cf9fffff size=0x400

Signed-off-by: Shuah Khan <shuah.kh@samsung.com>
Signed-off-by: Joerg Roedel <joro@8bytes.org>
drivers/iommu/iommu.c