Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 501b3265 authored by Feng Wu's avatar Feng Wu Committed by Thomas Gleixner
Browse files

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: default avatarFeng 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: default avatarThomas Gleixner <tglx@linutronix.de>
parent f6b3c72c
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -141,6 +141,18 @@ int arch_show_interrupts(struct seq_file *p, int prec)
	seq_printf(p, "%*s: %10u\n", prec, "ERR", atomic_read(&irq_err_count));
#if defined(CONFIG_X86_IO_APIC)
	seq_printf(p, "%*s: %10u\n", prec, "MIS", atomic_read(&irq_mis_count));
#endif
#ifdef CONFIG_HAVE_KVM
	seq_printf(p, "%*s: ", prec, "PIN");
	for_each_online_cpu(j)
		seq_printf(p, "%10u ", irq_stats(j)->kvm_posted_intr_ipis);
	seq_puts(p, "  Posted-interrupt notification event\n");

	seq_printf(p, "%*s: ", prec, "PIW");
	for_each_online_cpu(j)
		seq_printf(p, "%10u ",
			   irq_stats(j)->kvm_posted_intr_wakeup_ipis);
	seq_puts(p, "  Posted-interrupt wakeup event\n");
#endif
	return 0;
}