summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2026-10-11 11:35:17 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2026-10-13 09:44:51 -0700
commit0fb34ebd3330382e61adde030416e9b77fe0f5d2 (patch)
tree3ad3d905354cf26e750d0105e558290051e5f6e2 /tools/perf/scripts/python
parent8afff2e4b90978b8203f9e3898995dcf86821b49 (diff)
assoc_array: move gc's folding into a function of its own
assoc_array_gc() is close to 300 lines with eleven gotos. It copies the tree depth first, without recursion, and packs each node's copy on the way back up; the copying, the walk and the packing are all written out in one function, joined by five labels. Start taking it apart with the folding of children into a finished copy, the code after the retry_compress label, which becomes assoc_array_gc_fold() and keeps its label and its goto. 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')
0 files changed, 0 insertions, 0 deletions