From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Theurer Subject: [PATCH] add oprofile Kconfig Date: Fri, 25 Feb 2005 15:12:30 -0600 Message-ID: <421F94BE.70406@us.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------090805010002070605060502" Sender: xen-devel-admin@lists.sourceforge.net Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------090805010002070605060502 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 --------------090805010002070605060502 Content-Type: text/plain; name="patch-oprofile-xen-unstable.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch-oprofile-xen-unstable.txt" 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 --------------090805010002070605060502-- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click