WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] Revisiting the Xenoprof problem

To: William Cohen <wcohen@xxxxxxxxxx>, "keir@xxxxxxxxxxxxx" <keir@xxxxxxxxxxxxx>
Subject: RE: [Xen-devel] Revisiting the Xenoprof problem
From: "Santos, Jose Renato G" <joserenato.santos@xxxxxx>
Date: Wed, 28 Nov 2007 21:44:07 +0000
Accept-language: en-US
Acceptlanguage: en-US
Cc: "Venkataraman, Meenakshi" <meenakshi.venkataraman@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, "levon@xxxxxxxxxxxxxxxxx" <levon@xxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 28 Nov 2007 13:49:18 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <474DB3B3.1070505@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <7CE4D90FFCFD444AA05E2D0FF89A390D55339D@xxxxxxxxxxxxxxxxxxxxxxxxxxxx><C7B67062D31B9E459128006BAAD0DC3D0CD3C306@xxxxxxxxxxxxxxxxxxxxxxxxxxxx><7CE4D90FFCFD444AA05E2D0FF89A390D5538E6@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <C7B67062D31B9E459128006BAAD0DC3D0CD3C332@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <7CE4D90FFCFD444AA05E2D0FF89A390D5538F8@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <47434852.20309@xxxxxxxxxx> <C7B67062D31B9E459128006BAAD0DC3D0CE3D2D1@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <474DB3B3.1070505@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acgx7Lz1m8iTsRo5SZmKgrk6bzXzLAAFiFkw
Thread-topic: [Xen-devel] Revisiting the Xenoprof problem
>
> So the xen passive domain support needs to be accepted into
> oprofile before the matching patches get accepted into Xen?

  That was the original plan. However since no one is working on modifying the 
patches to attend John Levon requests I think this is not going to happen 
anytime soon. So I am suggesting to change the original plan and merge the Xen 
fix to support oprofile 0.9.3. now. We should reserve the cpu buffer escape 
codes for Xen in mainline Oprofile (to avoid the same problem in future 
Oprofile versions) and get the changes to Xen merged.

The main question is how to change Xen to support newer versions of Oprofile 
without breaking instalations using older versions.

Here is a suggestion.
We could create a new xenoprof operation (in xenoprof hypercall) to tell Xen to 
use the new version of the CPU escape codes (used to represent domain 
switches). We would then modify oprofile patches for passive domain support to 
call this hypercall for oprofile versions 0.9.3 and later. By default Xen would 
use the older version of the escape code if the new xenoprof hypercall is not 
invoked, enabling instalations with oprofile 0.9.2 and older to continue 
working, since they will not invoke the new hypercall.

Does this seems reasonable?
Keir, would this be acceptable?
If we reach agreement I can create the Xen and Oprofile patches

Thanks

Renato

> Is there going to be a placeholder or some other entry in
> oprofile cvs, so people know that a define is reserved for
> Xenoprof in  daemon/opd_interface.h?
>
> Any thoughts on how to determine whether the old or new
> xenoprof interface is being used. The oprofile kernel-user
> space interface doesn't have versioning information.
>
> -Will
>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel