iommu/vt-d: Add qi_submit trace event
authorLu Baolu <baolu.lu@linux.intel.com>
Thu, 14 Jan 2021 09:04:00 +0000 (17:04 +0800)
committerJoerg Roedel <jroedel@suse.de>
Thu, 28 Jan 2021 10:32:13 +0000 (11:32 +0100)
commitf2dd871799ba5d80f95f9bdbc0e60d390e1bcd22
treef910ca52ab2770dba8f30937f258f398a86a7241
parent9872f9bd9dbd68f75e8db782717d71e8594f6a02
iommu/vt-d: Add qi_submit trace event

This adds a new trace event to track the submissions of requests to the
invalidation queue. This event will provide the information like:
- IOMMU name
- Invalidation type
- Descriptor raw data

A sample output like:
| qi_submit: iotlb_inv dmar1: 0x100e2 0x0 0x0 0x0
| qi_submit: dev_tlb_inv dmar1: 0x1000000003 0x7ffffffffffff001 0x0 0x0
| qi_submit: iotlb_inv dmar2: 0x800f2 0xf9a00005 0x0 0x0

This will be helpful for queued invalidation related debugging.

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20210114090400.736104-1-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/dmar.c
include/trace/events/intel_iommu.h