diff options
author | Shuah Khan <shuah.kh@samsung.com> | 2013-08-15 11:59:27 -0600 |
---|---|---|
committer | Joerg Roedel <joro@8bytes.org> | 2013-09-24 12:35:26 +0200 |
commit | 699806302d8ac7dfb7d46e20da0ecd4317418d1d (patch) | |
tree | 406d54a42e179207e604d9f952a29d069c958378 /drivers/iommu | |
parent | b54db778858bc83f9231e5b358cb978f559f7016 (diff) |
iommu: Change iommu driver to call detach_device_to_domain trace event
Change iommu driver to call detach_device_to_domain trace event. This
iommu_device class event can be enabled to trigger when devices are detached
from a domain. Trace information includes device name.
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: detach_device_from_domain: IOMMU: device=0000:00:02.0
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c index 74c371c53ee4..b6307545124c 100644 --- a/drivers/iommu/iommu.c +++ b/drivers/iommu/iommu.c @@ -702,6 +702,7 @@ void iommu_detach_device(struct iommu_domain *domain, struct device *dev) return; domain->ops->detach_dev(domain, dev); + trace_detach_device_from_domain(dev); } EXPORT_SYMBOL_GPL(iommu_detach_device); |