All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Theurer <habanero@us.ibm.com>
To: xen-devel@lists.sourceforge.net
Subject: [PATCH] add oprofile Kconfig
Date: Fri, 25 Feb 2005 15:12:30 -0600	[thread overview]
Message-ID: <421F94BE.70406@us.ibm.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1087 bytes --]

This is a trivial patch to add kernel config support for oprofile.  I 
have been using oprofile for the last few days (timer int based) and it 
seems to work "OK".  IMO, oprofile could stand a lot of virtualization 
awareness, and I would like to discuss what everyone would like to see.

I would like oprofile to have the ability to profile the entire system, 
including xen and all running domains.  I would think running oprofile 
daemon in dom0 would be adequate, as long as we could (a) modify 
oprofile driver to tell xen what kind of events we need (b) have xen 
forward data for those events to dom0 (c) add info in that data that 
tells oprofile what domain or if xen was running (d) modify oprofile 
reporters to be aware of the new data and have reference to bins in 
other running domains.

I suppose oprofile could still be run in a domU, but probably just timer 
int based profiling.  If one would want to use perf counters in just the 
context of a single domU, I guess we would have to save/restore that 
data on the cpus as we switch from/to that domU?

-Andrew Theurer

[-- Attachment #2: patch-oprofile-xen-unstable.txt --]
[-- Type: text/plain, Size: 456 bytes --]

diff -Naurp xen-unstable-orig/linux-2.6.10-xen-sparse/arch/xen/Kconfig.drivers xen-unstable/linux-2.6.10-xen-sparse/arch/xen/Kconfig.drivers
--- xen-unstable-orig/linux-2.6.10-xen-sparse/arch/xen/Kconfig.drivers	2005-02-24 22:12:10.000000000 -0600
+++ xen-unstable/linux-2.6.10-xen-sparse/arch/xen/Kconfig.drivers	2005-02-25 14:55:49.410321096 -0600
@@ -52,4 +52,6 @@ config UNIX98_PTYS
 	default y
 endif
 
+source "arch/i386/oprofile/Kconfig"
+
 endmenu

             reply	other threads:[~2005-02-25 21:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-25 21:12 Andrew Theurer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-03-02  1:09 [PATCH] add oprofile Kconfig Santos, Jose Renato G (Jose Renato Santos)
2005-03-02  1:31 ` Andrew Theurer

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=421F94BE.70406@us.ibm.com \
    --to=habanero@us.ibm.com \
    --cc=xen-devel@lists.sourceforge.net \
    /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.