aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorEric Auger <eric.auger@redhat.com>2019-08-21 14:09:40 +0200
committerJoerg Roedel <jroedel@suse.de>2019-08-30 15:49:55 +0200
commit4dbd258ff63e0597ee8fb44d277c6c701f5019d9 (patch)
treef0336cf209b43b16b53951d35b35b3e3eb4b392a /tools/perf/scripts/python/event_analyzing_sample.py
parent0d87308cca2c124f9bce02383f1d9632c9be89c4 (diff)
iommu: Revisit iommu_insert_resv_region() implementation
Current implementation is recursive and in case of allocation failure the existing @regions list is altered. A non recursive version looks better for maintainability and simplifies the error handling. We use a separate stack for overlapping segment merging. The elements are sorted by start address and then by type, if their start address match. Note this new implementation may change the region order of appearance in /sys/kernel/iommu_groups/<n>/reserved_regions files but this order has never been documented, see commit bc7d12b91bd3 ("iommu: Implement reserved_regions iommu-group sysfs file"). Signed-off-by: Eric Auger <eric.auger@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions