summaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorHaris Okanovic <harisokn@amazon.com>2026-09-11 13:31:59 -0500
committerThomas Gleixner <tglx@kernel.org>2026-10-16 00:18:41 +0200
commite74798f2f8e1562f2bbd2fed8d81929eeef39ffc (patch)
tree0beb840e84080b8e980305ef5b9b134a4d462058 /scripts/basic
parent2e2f69fc8ae2b280e1c5e01d876c17bc06dbe23f (diff)
downloadlinux-e74798f2f8e1562f2bbd2fed8d81929eeef39ffc.tar.gz
linux-e74798f2f8e1562f2bbd2fed8d81929eeef39ffc.zip
genirq/proc: Fix missing CPU header in /proc/interrupts
irq_seq_show() must be idempotent since it may be called multiple times to render the same record, e.g. when seq_file's buffer is exceeded. It emits the CPU header behind the one-shot print_header flag, which the first pass clears, so the header is lost with the discarded buffer. This can be seen on large systems, such as 8g.48xl (192 CPUs) and 8i.96xl (384 CPUs) AWS instance types: $ head -1 /proc/interrupts 9: 0 0 ... 0 GICv3 25 Level vgic Replace print_header with the position of the first record and include the header whenever that record is emitted. Fixes: 171cc0d9eed1 ("genirq/proc: Speed up /proc/interrupts iteration") Signed-off-by: Haris Okanovic <harisokn@amazon.com> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Tested-by: Michael Kelley <mhklinux@outlook.com> Reviewed-by: Radu Rendec <radu@rendec.net> Link: https://patch.msgid.link/20260911-dev-harisokn-proc-interrupts-fix-b4-v1-1-f9ff208efcfa@amazon.com
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions