Re: TRACE_EVENT() declarations belong to include/trace/

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Anton Blanchard
Date: Monday, April 12, 2010 - 4:17 pm

Hi,


Unfortunately that misses this problem completely. On some versions of the
POWER hypervisor we can be presented with interrupts for our virtualisation
layer that get handled in the get_irq hypervisor call. The code looks like
this:


void do_IRQ(struct pt_regs *regs)
{
        struct pt_regs *old_regs = set_irq_regs(regs);
        unsigned int irq;

        trace_irq_entry(regs);

        irq_enter();

        check_stack_overflow();

        irq = ppc_md.get_irq();		<------------- jitter spikes here

        if (irq != NO_IRQ && irq != NO_IRQ_IGNORE)
                handle_one_irq(irq);
        else if (irq != NO_IRQ_IGNORE)
                __get_cpu_var(irq_stat).spurious_irqs++;


We've had HPC customers who have experienced jitter in their applications
caused by this and as a result I added the events so we can monitor it.

Since this is a POWER specific issue I'm happy to rename the trace events to
powerpc_irq_entry/exit. We could also look at changing the tracepoints, eg
putting it around the ppc_md.get_irq(), but I can't see how we can remove
them completely.

Anton
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
TRACE_EVENT() declarations belong to include/trace/, Mathieu Desnoyers, (Mon Apr 12, 2:45 pm)
Re: TRACE_EVENT() declarations belong to include/trace/, Steven Rostedt, (Mon Apr 12, 3:01 pm)
Re: TRACE_EVENT() declarations belong to include/trace/, Frederic Weisbecker, (Mon Apr 12, 3:04 pm)
Re: TRACE_EVENT() declarations belong to include/trace/, Mathieu Desnoyers, (Mon Apr 12, 3:17 pm)
Re: TRACE_EVENT() declarations belong to include/trace/, Anton Blanchard, (Mon Apr 12, 4:17 pm)
Re: TRACE_EVENT() declarations belong to include/trace/, Anton Blanchard, (Mon Apr 12, 4:24 pm)
Re: TRACE_EVENT() declarations belong to include/trace/, Mathieu Desnoyers, (Mon Apr 12, 5:27 pm)