Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964831AbbESNzZ (ORCPT ); Tue, 19 May 2015 09:55:25 -0400 Received: from terminus.zytor.com ([198.137.202.10]:37365 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964812AbbESNzU (ORCPT ); Tue, 19 May 2015 09:55:20 -0400 Date: Tue, 19 May 2015 06:55:10 -0700 From: tip-bot for Feng Wu Message-ID: Cc: linux-kernel@vger.kernel.org, mingo@kernel.org, feng.wu@intel.com, tglx@linutronix.de, hpa@zytor.com Reply-To: linux-kernel@vger.kernel.org, feng.wu@intel.com, tglx@linutronix.de, mingo@kernel.org, hpa@zytor.com In-Reply-To: <1432026437-16560-5-git-send-email-feng.wu@intel.com> References: <1432026437-16560-5-git-send-email-feng.wu@intel.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/apic] x86/irq: Show statistics information for posted-interrupts Git-Commit-ID: 501b32653ebf49114cccb9afbf9150cf18fd8700 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1868 Lines: 51 Commit-ID: 501b32653ebf49114cccb9afbf9150cf18fd8700 Gitweb: http://git.kernel.org/tip/501b32653ebf49114cccb9afbf9150cf18fd8700 Author: Feng Wu AuthorDate: Tue, 19 May 2015 17:07:17 +0800 Committer: Thomas Gleixner CommitDate: Tue, 19 May 2015 15:51:17 +0200 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 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 --- arch/x86/kernel/irq.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/x86/kernel/irq.c b/arch/x86/kernel/irq.c index 90b2f705..7e10c8b 100644 --- a/arch/x86/kernel/irq.c +++ b/arch/x86/kernel/irq.c @@ -142,6 +142,18 @@ int arch_show_interrupts(struct seq_file *p, int prec) #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; } -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/