summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2026-10-11 11:44:59 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2026-10-11 12:42:27 -0700
commit970ec680434442a4266cf34cf6386e3cfaaf85ae (patch)
treee2c8c48f38b064c81e1b1947a539453d3496f8b9 /tools/perf/scripts/python/stackcollapse.py
parent0bb1b14e5c6c308ee214f076592c783a2a9d54f1 (diff)
downloadlinux-next-970ec680434442a4266cf34cf6386e3cfaaf85ae.tar.gz
linux-next-970ec680434442a4266cf34cf6386e3cfaaf85ae.zip
assoc_array: move deletion's collapse into a function of its own
assoc_array_delete() is 177 lines: it finds the leaf, clears it, and then spends some 90 lines collapsing the subtree around it into one node, with two labels of its own inside an if. Move the collapse into assoc_array_delete_collapse(), which returns false when it cannot allocate the node; the caller cancels the edit as before. 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