summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorJoao Martins <joao.m.martins@oracle.com>2024-06-27 14:00:56 +0300
committerJason Gunthorpe <jgg@nvidia.com>2024-06-28 19:12:22 +0300
commit9560393b830b415b2151b3dd8e065257cccbffa7 (patch)
tree875e1ec707b0f2f0d649d8823276d395f77a80dd /tools/perf/scripts/python/exported-sql-viewer.py
parentec61f820a2ff07d1717583bd57d6ee45d2763a6e (diff)
downloadlinux-9560393b830b415b2151b3dd8e065257cccbffa7.tar.xz
iommufd/selftest: Fix iommufd_test_dirty() to handle <u8 bitmaps
The calculation returns 0 if it sets less than the number of bits per byte. For calculating memory allocation from bits, lets round it up to one byte. Link: https://lore.kernel.org/r/20240627110105.62325-3-joao.m.martins@oracle.com Reported-by: Matt Ochs <mochs@nvidia.com> Fixes: a9af47e382a4 ("iommufd/selftest: Test IOMMU_HWPT_GET_DIRTY_BITMAP") Signed-off-by: Joao Martins <joao.m.martins@oracle.com> Reviewed-by: Kevin Tian <kevin.tian@intel.com> Tested-by: Matt Ochs <mochs@nvidia.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions