mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-06-21 15:43:21 +02:00
61b51a167c
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
14 lines
387 B
C
14 lines
387 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _KERNEL_IRQ_PROC_H
|
|
#define _KERNEL_IRQ_PROC_H
|
|
|
|
#if defined(CONFIG_PROC_FS) && defined(CONFIG_GENERIC_IRQ_SHOW)
|
|
void irq_proc_calc_prec(void);
|
|
void irq_proc_update_chip(const struct irq_chip *chip);
|
|
#else
|
|
static inline void irq_proc_calc_prec(void) { }
|
|
static inline void irq_proc_update_chip(const struct irq_chip *chip) { }
|
|
#endif
|
|
|
|
#endif
|