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
45 lines
1.1 KiB
C
45 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _KERNEL_IRQ_DEBUGFS_H
|
|
#define _KERNEL_IRQ_DEBUGFS_H
|
|
|
|
#ifdef CONFIG_GENERIC_IRQ_DEBUGFS
|
|
#include <linux/debugfs.h>
|
|
|
|
struct irq_bit_descr {
|
|
unsigned int mask;
|
|
char *name;
|
|
};
|
|
|
|
#define BIT_MASK_DESCR(m) { .mask = m, .name = #m }
|
|
|
|
void irq_debug_show_bits(struct seq_file *m, int ind, unsigned int state,
|
|
const struct irq_bit_descr *sd, int size);
|
|
|
|
void irq_add_debugfs_entry(unsigned int irq, struct irq_desc *desc);
|
|
static inline void irq_remove_debugfs_entry(struct irq_desc *desc)
|
|
{
|
|
debugfs_remove(desc->debugfs_file);
|
|
kfree(desc->dev_name);
|
|
}
|
|
void irq_debugfs_copy_devname(int irq, struct device *dev);
|
|
# ifdef CONFIG_IRQ_DOMAIN
|
|
void irq_domain_debugfs_init(struct dentry *root);
|
|
# else
|
|
static inline void irq_domain_debugfs_init(struct dentry *root)
|
|
{
|
|
}
|
|
# endif
|
|
#else /* CONFIG_GENERIC_IRQ_DEBUGFS */
|
|
static inline void irq_add_debugfs_entry(unsigned int irq, struct irq_desc *d)
|
|
{
|
|
}
|
|
static inline void irq_remove_debugfs_entry(struct irq_desc *d)
|
|
{
|
|
}
|
|
static inline void irq_debugfs_copy_devname(int irq, struct device *dev)
|
|
{
|
|
}
|
|
#endif /* CONFIG_GENERIC_IRQ_DEBUGFS */
|
|
|
|
#endif
|