mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-03-22 11:42:41 +01:00
The following patches implement hardware performance events for the Alpha EV67 and later CPUs. I have had this running on a Compaq XP1000 (EV67, single CPU) for a few days now. Pretty cool -- discovered that the glibc exp2() library routine uses on average 985 cycles to execute 777 CPU instructions whereas Compaq's CPML library version of exp2() uses on average 32 cycles to execute 47 CPU instructions to achieve the same thing! This patch: Add performance monitor interrupt counternd and export the count to user space via /proc/interrupts. Signed-off-by: Michael Cree <mcree@orcon.net.nz> Cc: Richard Henderson <rth@twiddle.net> Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru> Cc: Matt Turner <mattst88@gmail.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Ingo Molnar <mingo@elte.hu> Cc: Jay Estabrook <jay.estabrook@hp.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
15 lines
263 B
C
15 lines
263 B
C
#ifndef _ALPHA_HW_IRQ_H
|
|
#define _ALPHA_HW_IRQ_H
|
|
|
|
|
|
extern volatile unsigned long irq_err_count;
|
|
DECLARE_PER_CPU(unsigned long, irq_pmi_count);
|
|
|
|
#ifdef CONFIG_ALPHA_GENERIC
|
|
#define ACTUAL_NR_IRQS alpha_mv.nr_irqs
|
|
#else
|
|
#define ACTUAL_NR_IRQS NR_IRQS
|
|
#endif
|
|
|
|
#endif
|