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] [PATCH] [1/3] Xenoprof: Enabling performance profiling i

To: "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH] [1/3] Xenoprof: Enabling performance profiling in Xen
From: "Santos, Jose Renato G (Jose Renato Santos)" <joserenato.santos@xxxxxx>
Date: Mon, 11 Apr 2005 09:10:42 -0700
Cc: "Turner, Yoshio" <yoshio_turner@xxxxxx>, Aravind Menon <aravind.menon@xxxxxxx>, Xen-devel@xxxxxxxxxxxxxxxxxxx, G John Janakiraman <john@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 11 Apr 2005 16:10:37 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcU+qwSV/FiyePpcTLuKvcZLetOlpgAAG6uQ
Thread-topic: [Xen-devel] [PATCH] [1/3] Xenoprof: Enabling performance profiling in Xen

>> 
>> Is the nmi_sanity_check() needed? We shouldn't lose NMIs: 
>> even if we take one while doing NMI processing, we sholuld 
>> retake the NMI as soon as the first one IRETs.
>> 

  The nmi_sanity_check() should not be needed if everything is
  working fine. However I suggest we should keep it for now
  until we are sure it is safe to remove it. I would also suggest
  that we print a warning message in the console and/or the
  log if it is detected that an NMI was lost. We could built
  our confidence that NMIs are no being lost if we don't
  see those warnings for some time while using oprofile.

>> There used to be a problem whereby the Xen NMI handler would 
>> bail if it detected it had interrupted Xen at an unfortunate 
>> time. I guess the code in xenoprof was probably added to 
>> deal with this situation. If so then it is no longer needed 
>> -- I fix up in a more generic way now (reschedule the NMI 
>> automatically). 
>> 

  That is correct. However I believe Aravind identified a
  problem with the original fix and implemented an alternative fix.
  Since this is a recent fix, we though it would be better
  to keep the nmi_sanity_check() for now.
    

>> Apart from that I guess this is mostly just oprofile source 
>> files pulled out of Linux? Is there much/any other 
>> Xen-specific code in the patch? 
>> 

  It is fair to say that most code came from Linux, but there
  is more Xen specific code besides this. For example, event
  samples must be multiplexed among different domains; samples
  must be delivered through a shared page between Xen and the
  domain, etc. 

  Thanks

  Renato 

  

>>  -- Keir
>> 

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

<Prev in Thread] Current Thread [Next in Thread>