[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] enable cpu profiling



It looks like cpu profiling (eg. booting the kernel with profile=2)
has not worked for quite a while in Xen.  I realize that with steal
time and lost ticks the profile samples won't add up to 100%, but
getting some general idea of what's going on is probably better than
nothing.

This patch simply calls profile_tick() from timer_interrupt().

Signed-off-by: Rik van Riel <riel@xxxxxxxxxx>

--
All Rights Reversed
diff -r c677f4e75608 linux-2.6-xen-sparse/arch/i386/kernel/time-xen.c
--- a/linux-2.6-xen-sparse/arch/i386/kernel/time-xen.c  Thu Nov 16 11:11:17 
2006 +0000
+++ b/linux-2.6-xen-sparse/arch/i386/kernel/time-xen.c  Thu Nov 16 13:19:29 
2006 -0500
@@ -716,6 +716,7 @@ irqreturn_t timer_interrupt(int irq, voi
                rcu_check_callbacks(cpu, user_mode(regs));
        scheduler_tick();
        run_posix_cpu_timers(current);
+       profile_tick(CPU_PROFILING, regs);
 
        return IRQ_HANDLED;
 }
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.