Skip to contentSkip to conversation

enable cpu profiling

PATCH New Rik van Riel 1 participant 1 message Nov 16, 2006

lore
Share & tools
lore
#0 lore raw

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().

Signature · 1 line
All Rights Reversed
linux-2.6-xen-sparse/arch/i386/kernel/time-xen.c +1 -0
diff -r c677f4e75608 linux-2.6-xen-sparse/arch/i386/kernel/time-xen.c
@@ -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
[email protected]
http://lists.xensource.com/xen-devel