summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorTvrtko Ursulin <tvrtko.ursulin@igalia.com>2026-09-15 12:49:33 +0100
committerAlex Deucher <alexander.deucher@amd.com>2026-09-17 11:38:29 -0400
commit789551e08ebee7a42ddf9f98405644a1c6bd4bdb (patch)
tree37e3c28e710f15b8af77d91f30e8f291ac644328 /tools/perf/scripts/python/bin/stackcollapse-record
parentb73a4958728f05e340f77fd3bd5117040be7055a (diff)
downloadlinux-789551e08ebee7a42ddf9f98405644a1c6bd4bdb.tar.gz
linux-789551e08ebee7a42ddf9f98405644a1c6bd4bdb.zip
drm/amdgpu: Extend logical to device instance lookup to all devices
A subset of supported devices can have a mismatch between the logical and device engine instance numbers which the driver currently solves by a combination of lookup table generated at driver init time, and a conditionally set vfunc checked and used at runtime to do the lookup. As the requirement to do these lookups is relatively widespread in the code base, plus the fact the mapping table is already allocated for all possible hw ips and instances, we can significantly streamline them by initializing the said lookup table unconditionally to the predominant "identity map" (logical instance numbers equal to device instances), and allow affected parts to re-configure the table based on their configuration. The effect is that for each lookup site we replace the conditional followed by a indirect function call with a simple two-dimensional table lookup. Bloat-o-meter agrees the savings are significant: add/remove: 13/12 grow/shrink: 23/279 up/down: 51626/-198973 (-147347) ... Total: Before=10139692, After=9992345, chg -1.45% Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com> Cc: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions