Commit 94aedac4 authored by Dafna Hirschfeld's avatar Dafna Hirschfeld Committed by Joerg Roedel

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: default avatarDafna Hirschfeld <dafna.hirschfeld@collabora.com>
Link: https://lore.kernel.org/r/20211104071620.27290-1-dafna.hirschfeld@collabora.comSigned-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 0fcfb00b
...@@ -101,8 +101,9 @@ TRACE_EVENT(map, ...@@ -101,8 +101,9 @@ TRACE_EVENT(map,
__entry->size = size; __entry->size = size;
), ),
TP_printk("IOMMU: iova=0x%016llx paddr=0x%016llx size=%zu", TP_printk("IOMMU: iova=0x%016llx - 0x%016llx paddr=0x%016llx size=%zu",
__entry->iova, __entry->paddr, __entry->size __entry->iova, __entry->iova + __entry->size, __entry->paddr,
__entry->size
) )
); );
...@@ -124,8 +125,9 @@ TRACE_EVENT(unmap, ...@@ -124,8 +125,9 @@ TRACE_EVENT(unmap,
__entry->unmapped_size = unmapped_size; __entry->unmapped_size = unmapped_size;
), ),
TP_printk("IOMMU: iova=0x%016llx size=%zu unmapped_size=%zu", TP_printk("IOMMU: iova=0x%016llx - 0x%016llx size=%zu unmapped_size=%zu",
__entry->iova, __entry->size, __entry->unmapped_size __entry->iova, __entry->iova + __entry->size,
__entry->size, __entry->unmapped_size
) )
); );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment