diff options
author | Dafna Hirschfeld <dafna.hirschfeld@collabora.com> | 2021-11-04 08:16:20 +0100 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2021-12-06 11:59:31 +0100 |
commit | 94aedac49d92b22995d7b9092c6551b8b9924320 (patch) | |
tree | 462a89bbd8063cb7ca53dc0d5cb58d34cbdbd316 /include/trace | |
parent | Linux 5.16-rc4 (diff) | |
download | linux-94aedac49d92b22995d7b9092c6551b8b9924320.tar.xz linux-94aedac49d92b22995d7b9092c6551b8b9924320.zip |
iommu: Log iova range in map/unmap trace events
In case of an iommu page fault, the faulting iova is logged
in trace_io_page_fault. It is therefore convenient to log
the iova range in mapping/unmapping trace events so that it
is easier to see if the faulting iova was recently in any of
those ranges.
Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
Link: https://lore.kernel.org/r/20211104071620.27290-1-dafna.hirschfeld@collabora.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'include/trace')
-rw-r--r-- | include/trace/events/iommu.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/trace/events/iommu.h b/include/trace/events/iommu.h index 72b4582322ff..29096fe12623 100644 --- a/include/trace/events/iommu.h +++ b/include/trace/events/iommu.h @@ -101,8 +101,9 @@ TRACE_EVENT(map, __entry->size = size; ), - TP_printk("IOMMU: iova=0x%016llx paddr=0x%016llx size=%zu", - __entry->iova, __entry->paddr, __entry->size + TP_printk("IOMMU: iova=0x%016llx - 0x%016llx paddr=0x%016llx size=%zu", + __entry->iova, __entry->iova + __entry->size, __entry->paddr, + __entry->size ) ); @@ -124,8 +125,9 @@ TRACE_EVENT(unmap, __entry->unmapped_size = unmapped_size; ), - TP_printk("IOMMU: iova=0x%016llx size=%zu unmapped_size=%zu", - __entry->iova, __entry->size, __entry->unmapped_size + TP_printk("IOMMU: iova=0x%016llx - 0x%016llx size=%zu unmapped_size=%zu", + __entry->iova, __entry->iova + __entry->size, + __entry->size, __entry->unmapped_size ) ); |