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

[Xen-changelog] [linux-2.6.18-xen] xenoprof: backward compatibility for changed XENOPROF_ESCAPE_CODE



# HG changeset patch
# User Jan Beulich <jbeulich@xxxxxxxx>
# Date 1328892405 -3600
# Node ID b9627a5740d223827053317cd9c8f40c721db972
# Parent  7c89207af621ff8293f9b64c046eb70a8f85ef75
xenoprof: backward compatibility for changed XENOPROF_ESCAPE_CODE

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
---


diff -r 7c89207af621 -r b9627a5740d2 drivers/xen/xenoprof/xenoprofile.c
--- a/drivers/xen/xenoprof/xenoprofile.c        Fri Feb 10 17:11:47 2012 +0100
+++ b/drivers/xen/xenoprof/xenoprofile.c        Fri Feb 10 17:46:45 2012 +0100
@@ -120,6 +120,10 @@
 /* Check whether the given entry is an escape code */
 static int xenoprof_is_escape(xenoprof_buf_t * buf, int tail)
 {
+#if CONFIG_XEN_COMPAT < 0x040200 && !defined(CONFIG_64BIT)
+       if (buf->event_log[tail].eip == (unsigned long)XENOPROF_ESCAPE_CODE)
+               return 1;
+#endif
        return (buf->event_log[tail].eip == XENOPROF_ESCAPE_CODE);
 }
 

_______________________________________________
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®.