Skip to content

Commit 501b326

Browse files
Feng WuKAGA-KOKO
authored andcommitted
x86/irq: Show statistics information for posted-interrupts
Show the statistics information for notification event and wakeup event for posted-interrupt in /proc/interrupts. [ tglx: Named the short identifiers PIN and PIW to match the long identifiers ] Signed-off-by: Feng Wu <feng.wu@intel.com> Cc: jiang.liu@linux.intel.com Link: http://lkml.kernel.org/r/1432026437-16560-5-git-send-email-feng.wu@intel.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 parent f6b3c72 commit 501b326

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

arch/x86/kernel/irq.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,18 @@ int arch_show_interrupts(struct seq_file *p, int prec)
141141
seq_printf(p, "%*s: %10u\n", prec, "ERR", atomic_read(&irq_err_count));
142142
#if defined(CONFIG_X86_IO_APIC)
143143
seq_printf(p, "%*s: %10u\n", prec, "MIS", atomic_read(&irq_mis_count));
144+
#endif
145+
#ifdef CONFIG_HAVE_KVM
146+
seq_printf(p, "%*s: ", prec, "PIN");
147+
for_each_online_cpu(j)
148+
seq_printf(p, "%10u ", irq_stats(j)->kvm_posted_intr_ipis);
149+
seq_puts(p, " Posted-interrupt notification event\n");
150+
151+
seq_printf(p, "%*s: ", prec, "PIW");
152+
for_each_online_cpu(j)
153+
seq_printf(p, "%10u ",
154+
irq_stats(j)->kvm_posted_intr_wakeup_ipis);
155+
seq_puts(p, " Posted-interrupt wakeup event\n");
144156
#endif
145157
return 0;
146158
}

0 commit comments

Comments
 (0)