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

[Xen-devel] [PATCH] [TRIVIAL] Xenperf perfc_defn


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Ross C Mcilroy" <mcilrorc@xxxxxxxxxxxxx>
  • Date: Wed, 3 Aug 2005 11:36:45 +0100
  • Delivery-date: Wed, 03 Aug 2005 10:35:09 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcWYFz7XlT/YYm6lS+ac5EVxZrbcbQ==
  • Thread-topic: [PATCH] [TRIVIAL] Xenperf perfc_defn


perfc_defn.h is used to initialise an array of performance counter structures.  However, it is included twice to initialise two arrays (perfcounter in perfc.h and perfc_info in perfc.c).  The usual header file guard (#ifndef..., #define..., #endif) prevents these two arrays being initialised with the contents of perfc_defn.h in the same file.  This patch fixes this and allows Xenperf to work properly.



# HG changeset patch
# User rcmcilro@xxxxxxxxxxxxxxxxxxxxx
# Node ID a1972c8664eaf10f6b63ed239b3fa676d1f73794
# Parent  d6a821700752afe9730137a85dea3da579c16c2d
Allow perfc_defn.h to be included twice

diff -r d6a821700752 -r a1972c8664ea xen/include/xen/perfc_defn.h
--- a/xen/include/xen/perfc_defn.h      Tue Aug  2 13:37:54 2005
+++ b/xen/include/xen/perfc_defn.h      Wed Aug  3 09:42:42 2005
@@ -1,5 +1,3 @@
-#ifndef __XEN_PERFC_DEFN_H__
-#define __XEN_PERFC_DEFN_H__

 #define PERFC_MAX_PT_UPDATES 64
 #define PERFC_PT_UPDATES_BUCKET_SIZE 3
@@ -124,4 +122,3 @@
 PERFCOUNTER_CPU(remove_write_bad_prediction, "remove_write bad prediction")
 PERFCOUNTER_CPU(update_hl2e_invlpg,     "update_hl2e calls invlpg")

-#endif /* __XEN_PERFC_DEF

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

 


Rackspace

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