diff options
author | Shuah Khan <shuah.kh@samsung.com> | 2013-08-15 21:59:24 +0400 |
---|---|---|
committer | Joerg Roedel <joro@8bytes.org> | 2013-09-24 14:35:24 +0400 |
commit | d1cf7e822746b5e755f5a893ffeced1f6311c0cf (patch) | |
tree | b85e39bcf124389a6f29d3c76e4002798d5a3233 /drivers/iommu/iommu.c | |
parent | 7f6db1717235bd45d265766dad53c10d30899d41 (diff) | |
download | linux-d1cf7e822746b5e755f5a893ffeced1f6311c0cf.tar.xz |
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>
Diffstat (limited to 'drivers/iommu/iommu.c')
-rw-r--r-- | drivers/iommu/iommu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c index 58f6a16b2e1a..349c92dfce05 100644 --- a/drivers/iommu/iommu.c +++ b/drivers/iommu/iommu.c @@ -364,6 +364,8 @@ rename: /* Notify any listeners about change to group. */ blocking_notifier_call_chain(&group->notifier, IOMMU_GROUP_NOTIFY_ADD_DEVICE, dev); + + trace_add_device_to_group(group->id, dev); return 0; } EXPORT_SYMBOL_GPL(iommu_group_add_device); |