summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.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-11 12:42:26 -0700
commitd8854b39950a0407cb3923c6a3653aeb91bbd3bc (patch)
treebf54d984634ebfe4e604690019e8f3b41acf62aa /tools/perf/scripts/python/stackcollapse.py
parent99b732910039cff618549b07bbff11f15810670a (diff)
downloadlinux-next-d8854b39950a0407cb3923c6a3653aeb91bbd3bc.tar.gz
linux-next-d8854b39950a0407cb3923c6a3653aeb91bbd3bc.zip
assoc_array: move in-place insertion into a function of its own
assoc_array_insert_into_terminal_node() is over 300 lines and does four jobs, joined by gotos: putting the new leaf in place of a matching one or in a free slot, working out the segment of each leaf, splitting the node, and replacing the node with a shortcut. The last two share the function's tail, which installs the replacement where the node was. Move the jobs into functions of their own, one per commit, starting with the two cases that need no new node: assoc_array_insert_in_node(). No functional change. Assisted-by: LLM Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions