iommu: Change iommu driver to call remove_device_to_group trace event
authorShuah Khan <shuah.kh@samsung.com>
Thu, 15 Aug 2013 17:59:25 +0000 (11:59 -0600)
committerJoerg Roedel <joro@8bytes.org>
Tue, 24 Sep 2013 10:35:25 +0000 (12:35 +0200)
commit2e757086bdfdc9450dc2e4a5d2ec5431520a02c8
tree566857901d37dc35ad3a10fdf5b684e4d386abb5
parentd1cf7e822746b5e755f5a893ffeced1f6311c0cf
iommu: Change iommu driver to call remove_device_to_group trace event

Change iommu driver to call remove_device_to_group trace event. This
iommu_group class event can be enabled to trigger when devices get
removed from an iommu group. Trace information includes iommu group id and
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.854101: remove_device_from_group: IOMMU: groupID=0 device=0000:00:02.0

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