public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: tip-bot for Feng Wu <tipbot@zytor.com>
To: linux-tip-commits@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, mingo@kernel.org,
	feng.wu@intel.com, tglx@linutronix.de, hpa@zytor.com
Subject: [tip:x86/apic] x86/irq: Show statistics information for posted-interrupts
Date: Tue, 19 May 2015 06:55:10 -0700	[thread overview]
Message-ID: <tip-501b32653ebf49114cccb9afbf9150cf18fd8700@git.kernel.org> (raw)
In-Reply-To: <1432026437-16560-5-git-send-email-feng.wu@intel.com>

Commit-ID:  501b32653ebf49114cccb9afbf9150cf18fd8700
Gitweb:     http://git.kernel.org/tip/501b32653ebf49114cccb9afbf9150cf18fd8700
Author:     Feng Wu <feng.wu@intel.com>
AuthorDate: Tue, 19 May 2015 17:07:17 +0800
Committer:  Thomas Gleixner <tglx@linutronix.de>
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 <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>
---
 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;
 }
 

      reply	other threads:[~2015-05-19 13:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-19  9:07 [v7 0/4] prerequisite changes for VT-d posted-interrupts Feng Wu
2015-05-19  9:07 ` [v7 1/4] genirq: Introduce irq_set_vcpu_affinity() to target an interrupt to a VCPU Feng Wu
2015-05-19 13:45   ` [tip:irq/core] " tip-bot for Jiang Liu
2015-05-19  9:07 ` [v7 2/4] x86/irq: Implement irq_set_vcpu_affinity for pci_msi_ir_controller Feng Wu
2015-05-19 13:54   ` [tip:x86/apic] x86/irq/msi: Implement irq_set_vcpu_affinity for remapped MSI irqs tip-bot for Feng Wu
2015-05-19  9:07 ` [v7 3/4] x86/irq: Define a global vector for VT-d Posted-Interrupts Feng Wu
2015-05-19 13:54   ` [tip:x86/apic] " tip-bot for Feng Wu
2015-05-19  9:07 ` [v7 4/4] x86/irq: Show statistics information for posted-interrupts Feng Wu
2015-05-19 13:55   ` tip-bot for Feng Wu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=tip-501b32653ebf49114cccb9afbf9150cf18fd8700@git.kernel.org \
    --to=tipbot@zytor.com \
    --cc=feng.wu@intel.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox