enable cpu profiling
PATCH 1/1 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 <[email protected]>
Signature · 1 line
All Rights Reversed
linux-2.6-xen-sparse/arch/i386/kernel/time-xen.c +1 -0
@@ -716,6 +716,7 @@ irqreturn_t timer_interrupt(int irq, voircu_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
[email protected]
http://lists.xensource.com/xen-devel