summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/lists.py
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2025-08-12 12:39:04 +0200
committerPeter Zijlstra <peterz@infradead.org>2025-08-15 13:12:59 +0200
commit4118994b33bb628dd9aeb941c5af6f950f1dea90 (patch)
treea8f37bb541831c3cb3900b4663bbd5df311d42ac /scripts/gdb/linux/lists.py
parent3821f258686691cf12bbfc636ab22fa2b049dc86 (diff)
perf: Move common code into both rb and aux branches
if (cond) { A; } else { B; } C; into if (cond) { A; C; } else { B; C; } Notably C has a success branch and both A and B have two places for success. For A (rb case), duplicate the success case because later patches will result in them no longer being identical. For B (aux case), share using goto (cleaned up later). Suggested-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com> Link: https://lore.kernel.org/r/20250812104019.016252852@infradead.org
Diffstat (limited to 'scripts/gdb/linux/lists.py')
0 files changed, 0 insertions, 0 deletions