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

Change iommu driver to call add_device_to_group trace event. This iommu_group
class event can be enabled to trigger when devices get added to an iommu group.
Trace information includes iommu group id and device name.

Testing:
The following is trace is generated when intel-iommu driver adds devices to
to iommu groups during boot-time during its initialization:

       swapper/0-1     [003] ....     1.854793: add_device_to_group: IOMMU: groupID=0 device=0000:00:00.0
       swapper/0-1     [003] ....     1.854797: add_device_to_group: IOMMU: groupID=1 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