patch-2.2.11 linux/arch/alpha/kernel/irq.h
Next file: linux/arch/alpha/kernel/machvec.h
Previous file: linux/arch/alpha/kernel/irq.c
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Mon Aug 9 12:04:38 1999
- Orig file:
v2.2.10/linux/arch/alpha/kernel/irq.h
- Orig date:
Wed Dec 30 15:06:22 1998
diff -u --recursive --new-file v2.2.10/linux/arch/alpha/kernel/irq.h linux/arch/alpha/kernel/irq.h
@@ -24,6 +24,23 @@
extern void handle_irq(int irq, int ack, struct pt_regs * regs);
+extern char _stext;
+static inline void alpha_do_profile (unsigned long pc)
+{
+ if (prof_buffer && current->pid) {
+ pc -= (unsigned long) &_stext;
+ pc >>= prof_shift;
+ /*
+ * Don't ignore out-of-bounds PC values silently,
+ * put them into the last histogram slot, so if
+ * present, they will show up as a sharp peak.
+ */
+ if (pc > prof_len - 1)
+ pc = prof_len - 1;
+ atomic_inc((atomic_t *)&prof_buffer[pc]);
+ }
+}
+
#define RTC_IRQ 8
#ifdef CONFIG_RTC
#define TIMER_IRQ 0 /* timer is the pit */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)