diff options
author | 2021-06-14 07:53:10 +0200 | |
---|---|---|
committer | 2021-06-16 16:09:41 -0500 | |
commit | d1b8dc09dd71248f5098792af98caa497ec66d19 (patch) | |
tree | 415d7377199fb6d6f208e33e513303381905fcb1 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | PCI/P2PDMA: Avoid pci_get_slot(), which may sleep (diff) | |
download | linux-dev-d1b8dc09dd71248f5098792af98caa497ec66d19.tar.xz linux-dev-d1b8dc09dd71248f5098792af98caa497ec66d19.zip |
PCI/P2PDMA: Simplify distance calculation
Merge __calc_map_type_and_dist() and calc_map_type_and_dist_warn() into
calc_map_type_and_dist() to simplify the code a bit. This now means we add
the devfn strings to the acs_buf unconditionally even if the buffer is not
printed, but that is not a lot of overhead and keeps the code much simpler.
Link: https://lore.kernel.org/r/20210614055310.3960791-1-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions