summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorMatt Roper <matthew.d.roper@intel.com>2026-03-05 14:59:27 -0800
committerMatt Roper <matthew.d.roper@intel.com>2026-03-09 14:19:45 -0700
commit9f3e77cf204ebb5755e092136c880a6c2d942568 (patch)
treedd65d4b4782ba4ad201c486f1a57f4546357bf0d /tools/perf/scripts/python/stackcollapse.py
parente8a6e92285ba41f7870b8ac9a272b184b8301982 (diff)
drm/xe: Add for_each_gt_with_type() iterator
There are a couple places in the driver today that have GT loops that only need to operate on a specific type of GT. E.g., for_each_gt(...) { if (xe_gt_is_media_type(gt)) continue; ... } Some upcoming development is expected to utilize this pattern a bit more widely, so add a dedicated iterator that allows looping over specific GT type(s). Note that this iterator uses a mask for the "type" parameter rather than a direct value match. That's probably a bit overkill for now given that there are only two possible types of GTs, but if additional types of GTs ever show up in the future, this approach will fit more naturally and allow cases where we might want to loop over a subset of the possible types, or specifically mask off one single type. Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://patch.msgid.link/20260305-gt-type-loops-v1-1-aa42e9fc3f06@intel.com Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions