summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorNicolin Chen <nicolinc@nvidia.com>2026-08-30 15:26:40 -0700
committerJason Gunthorpe <jgg@nvidia.com>2026-09-11 12:05:01 -0300
commit5519695903a4b443903dd6d9207ad340bc3c984b (patch)
tree32bbb84012c2ac5d0c3bfac9e3a074ebfb54e047 /tools/perf/scripts/python/bin/stackcollapse-record
parent61e2f25a49bc4d274e71856b2bcac0753f38bafb (diff)
downloadlinux-next-5519695903a4b443903dd6d9207ad340bc3c984b.tar.gz
linux-next-5519695903a4b443903dd6d9207ad340bc3c984b.zip
iommufd/selftest: Convert cache invalidation mocks to the core array loop
The vIOMMU and the nested-domain selftest invalidation mocks each used to walk the whole request array on their own, with the vIOMMU mock even allocating a buffer sized to the entire array in order to do so first. The iommufd core now iterates the request array itself and re-invokes the op with the not-yet-handled sub-array, so handle just a single request per call out of the front of that sub-array and report one handled entry via the array->entry_num. Drop both of the loops and the kzalloc_objs() in the viommu callback function, and keep returning a success for an empty array as a probe of the selftest data type. Reviewed-by: Kevin Tian <kevin.tian@intel.com> Reviewed-by: Pranjal Shrivastava <praan@google.com> Assisted-by: Claude:claude-opus-4-8 Signed-off-by: Nicolin Chen <nicolinc@nvidia.com> Link: https://patch.msgid.link/535f3b97e16c437f1df0c988a96229f623142ee9.1788127877.git.nicolinc@nvidia.com Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions