aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/i8259.c
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2009-07-07 09:00:57 -0400
committerAvi Kivity <avi@redhat.com>2009-09-10 01:33:11 -0400
commit1000ff8d893765d7b56e32fe16dbe4814f172588 (patch)
treef76731c391a5044c26531b2a00feeb98b6e457b0 /arch/x86/kvm/i8259.c
parent07fb8bb29f5269f30afa6f1b3d941406677f6ad2 (diff)
KVM: Add trace points in irqchip code
Add tracepoint in msi/ioapic/pic set_irq() functions, in IPI sending and in the point where IRQ is placed into apic's IRR. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/i8259.c')
-rw-r--r--arch/x86/kvm/i8259.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kvm/i8259.c b/arch/x86/kvm/i8259.c
index 1d1bb75dc7bc..e4bcbddecb36 100644
--- a/arch/x86/kvm/i8259.c
+++ b/arch/x86/kvm/i8259.c
@@ -30,6 +30,7 @@
30#include "irq.h" 30#include "irq.h"
31 31
32#include <linux/kvm_host.h> 32#include <linux/kvm_host.h>
33#include "trace.h"
33 34
34static void pic_lock(struct kvm_pic *s) 35static void pic_lock(struct kvm_pic *s)
35 __acquires(&s->lock) 36 __acquires(&s->lock)
@@ -190,6 +191,8 @@ int kvm_pic_set_irq(void *opaque, int irq, int level)
190 if (irq >= 0 && irq < PIC_NUM_PINS) { 191 if (irq >= 0 && irq < PIC_NUM_PINS) {
191 ret = pic_set_irq1(&s->pics[irq >> 3], irq & 7, level); 192 ret = pic_set_irq1(&s->pics[irq >> 3], irq & 7, level);
192 pic_update_irq(s); 193 pic_update_irq(s);
194 trace_kvm_pic_set_irq(irq >> 3, irq & 7, s->pics[irq >> 3].elcr,
195 s->pics[irq >> 3].imr, ret == 0);
193 } 196 }
194 pic_unlock(s); 197 pic_unlock(s);
195 198