From: Rik van Riel <riel@redhat.com>
To: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: [PATCH] enable cpu profiling
Date: Thu, 16 Nov 2006 13:14:56 -0500 [thread overview]
Message-ID: <455CAAA0.6070501@redhat.com> (raw)
[-- 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
reply other threads:[~2006-11-16 18:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=455CAAA0.6070501@redhat.com \
--to=riel@redhat.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.