* [PATCH] enable cpu profiling
@ 2006-11-16 18:14 Rik van Riel
0 siblings, 0 replies; only message in thread
From: Rik van Riel @ 2006-11-16 18:14 UTC (permalink / raw)
To: xen-devel@lists.xensource.com
[-- Attachment #1: Type: text/plain, Size: 416 bytes --]
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@redhat.com>
--
All Rights Reversed
[-- Attachment #2: xen-profiling --]
[-- Type: text/plain, Size: 466 bytes --]
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;
}
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-11-16 18:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-16 18:14 [PATCH] enable cpu profiling Rik van Riel
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.