[profile]: [10/23] ia64 profiling cleanups

From: William Lee Irwin III
Date: Tue Jun 22 2004 - 11:25:53 EST


Convert ia64 to use profiling_on() and profile_tick().

Index: prof-2.6.7/arch/ia64/kernel/time.c
===================================================================
--- prof-2.6.7.orig/arch/ia64/kernel/time.c 2004-06-15 22:19:01.000000000 -0700
+++ prof-2.6.7/arch/ia64/kernel/time.c 2004-06-22 07:25:51.482336664 -0700
@@ -19,7 +19,6 @@
#include <linux/time.h>
#include <linux/interrupt.h>
#include <linux/efi.h>
-#include <linux/profile.h>
#include <linux/timex.h>

#include <asm/machvec.h>
@@ -203,7 +202,7 @@
if (user_mode(regs))
return;

- if (!prof_buffer)
+ if (!profiling_on())
return;

ip = instruction_pointer(regs);
@@ -217,19 +216,8 @@
* Only measure the CPUs specified by /proc/irq/prof_cpu_mask.
* (default is all CPUs.)
*/
- if (!cpu_isset(smp_processor_id(), prof_cpu_mask))
- return;
-
- ip -= (unsigned long) &_stext;
- ip >>= prof_shift;
- /*
- * Don't ignore out-of-bounds IP values silently,
- * put them into the last histogram slot, so if
- * present, they will show up as a sharp peak.
- */
- if (ip > prof_len-1)
- ip = prof_len-1;
- atomic_inc((atomic_t *)&prof_buffer[ip]);
+ if (cpu_isset(smp_processor_id(), prof_cpu_mask))
+ profile_tick(ip);
}

static irqreturn_t
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/