linux/kernel/irq
Bitao Hu 99cf63c566 genirq: Provide a snapshot mechanism for interrupt statistics
The soft lockup detector lacks a mechanism to identify interrupt storms as
root cause of a lockup. To enable this the detector needs a mechanism to
snapshot the interrupt count statistics on a CPU when the detector observes
a potential lockup scenario and compare that against the interrupt count
when it warns about the lockup later on. The number of interrupts in that
period give a hint whether the lockup might have been caused by an interrupt
storm.

Instead of having extra storage in the lockup detector and accessing the
internals of the interrupt descriptor directly, add a snapshot member to
the per CPU irq_desc::kstat_irq structure and provide interfaces to take a
snapshot of all interrupts on the current CPU and to retrieve the delta of
a specific interrupt later on.

Originally-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Bitao Hu <yaoma@linux.alibaba.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20240411074134.30922-3-yaoma@linux.alibaba.com
2024-04-12 17:08:05 +02:00
..
affinity.c
autoprobe.c
chip.c
cpuhotplug.c
debug.h
debugfs.c
devres.c
dummychip.c
generic-chip.c
handle.c
internals.h genirq: Convert kstat_irqs to a struct 2024-04-12 17:08:05 +02:00
ipi-mux.c
ipi.c
irq_sim.c genirq/irq_sim: Shrink code by using <linux/cleanup.h> helpers 2024-01-29 11:07:57 +01:00
irqdesc.c genirq: Provide a snapshot mechanism for interrupt statistics 2024-04-12 17:08:05 +02:00
irqdomain.c irqdomain: Check virq for 0 before use in irq_dispose_mapping() 2024-04-08 12:08:58 +02:00
Kconfig genirq: Provide a snapshot mechanism for interrupt statistics 2024-04-12 17:08:05 +02:00
Makefile
manage.c genirq: Wake interrupt threads immediately when changing affinity 2024-02-19 11:43:46 +01:00
matrix.c genirq/matrix: Dynamic bitmap allocation 2024-02-23 10:18:44 +01:00
migration.c
msi.c genirq/msi: Provide MSI_FLAG_PARENT_PM_DEV 2024-02-15 17:55:41 +01:00
pm.c
proc.c genirq: Convert kstat_irqs to a struct 2024-04-12 17:08:05 +02:00
resend.c
settings.h
spurious.c
timings.c