]> git.hungrycats.org Git - linux/commit
genirq/proc: Runtime size the chip name
authorThomas Gleixner <tglx@kernel.org>
Sun, 17 May 2026 20:02:44 +0000 (22:02 +0200)
committerThomas Gleixner <tglx@kernel.org>
Tue, 26 May 2026 14:21:15 +0000 (16:21 +0200)
commit61b51a167c524b65a59b1342e70c2008d514a796
tree61568fc4e34400e99c901aaecd45b32732eef680
parent7603e0575d8a92318bd4695917fce7ec2c5825a1
genirq/proc: Runtime size the chip name

The chip name column in the /proc/interrupt output is 8 characters and
right aligned, which causes visual clutter due to the fixed length and the
alignment. Many interrupt chips, e.g. PCI/MSI[X] have way longer names.

Update the length when a chip is assigned to an interrupt and utilize this
information for the output. Align it left so all chip names start at the
begin of the column.

Update the GDB script as well and disentangle the header maze so it
actually works with all .config combinations.

Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Tested-by: Michael Kelley <mhklinux@outlook.com>
Reviewed-by: Dmitry Ilvokhin <d@ilvokhin.com>
Link: https://patch.msgid.link/20260517194932.085786035@kernel.org
kernel/irq/chip.c
kernel/irq/debugfs.h [new file with mode: 0644]
kernel/irq/internals.h
kernel/irq/irqdomain.c
kernel/irq/proc.c
kernel/irq/proc.h [new file with mode: 0644]
scripts/gdb/linux/interrupts.py