[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-3.4-testing] xenoprof: Fix support for active domains



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1260971802 0
# Node ID 65830c15627bd8855f9cd8e2d1d8ee032b5e3824
# Parent  cd04ba5b2f0c8b86efce74a032daf0771b348fea
xenoprof: Fix support for active domains

If a user tries to use opcontrol with option --active-domains in dom0
and then run opcontrol in a guest, no samples are generated. When the
guest calls the xenoprof interface it resets the internal Xenoprof
state machine and profiling does not start

Signed-off-by: Jose Renato Santos <jsantos@xxxxxxxxxx>
xen-unstable changeset:   20646:d7403d17d03a
xen-unstable date:        Wed Dec 16 12:20:08 2009 +0000
---
 xen/common/xenoprof.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r cd04ba5b2f0c -r 65830c15627b xen/common/xenoprof.c
--- a/xen/common/xenoprof.c     Wed Dec 16 13:56:00 2009 +0000
+++ b/xen/common/xenoprof.c     Wed Dec 16 13:56:42 2009 +0000
@@ -681,7 +681,8 @@ int do_xenoprof_op(int op, XEN_GUEST_HAN
     {
     case XENOPROF_init:
         ret = xenoprof_op_init(arg);
-        if ( !ret )
+        if ( (ret == 0) &&
+             (current->domain == xenoprof_primary_profiler) )
             xenoprof_state = XENOPROF_INITIALIZED;
         break;
 

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.