summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2026-10-11 10:25:12 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2026-10-13 09:44:51 -0700
commit1159eaf9acb3de1417fb86b382b5e41b46eb17a4 (patch)
treed661ef732b1ed5e5249f4b7f5ce681772016281e /tools/perf/scripts/python/task-analyzer.py
parenta624a7ce7d85b514d949b6c7a049f43ac96f3257 (diff)
assoc_array: fill the segment cache in one place
The loop that records the segment of each leaf in a full node is written out twice in assoc_array_insert_into_terminal_node(): for the node at its own level, and again at the far end of a shortcut that replaces it. Make it assoc_array_fill_segment_cache(). The second copy did not look for metadata pointers, because that path is only taken for a node holding nothing but leaves, so the function finds none there. The new key's segment is still set by each caller, from the walk the first time and from the key the second. No functional change. Assisted-by: LLM Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Tested-by: David Howells <dhowells@redhat.com> Reviewed-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions