summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/proc.py
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2025-08-12 12:39:03 +0200
committerPeter Zijlstra <peterz@infradead.org>2025-08-15 13:12:59 +0200
commit3821f258686691cf12bbfc636ab22fa2b049dc86 (patch)
treebe8ebdcafc65d860b9c891b222b3ea5d521c2c59 /scripts/gdb/linux/proc.py
parent86a0a7c59845e7093c9c73a7115c9d86349499d1 (diff)
perf: Merge consecutive conditionals in perf_mmap()
if (cond) { A; } else { B; } if (cond) { C; } else { D; } into: if (cond) { A; C; } else { B; D; } Notably the conditions are not identical in form, but are equivalent. 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/20250812104018.900078502@infradead.org
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions