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-changelog

[Xen-changelog] [PATCH] vmx-debug.patch

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [PATCH] vmx-debug.patch
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Tue, 24 May 2005 21:36:14 +0000
Delivery-date: Tue, 24 May 2005 22:01:27 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Xen Development List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
ChangeSet 1.1537, 2005/05/24 22:36:14+01:00, arun.sharma@xxxxxxxxx

        [PATCH] vmx-debug.patch
        
        Allow control of vmx debug log level from the command line.
        
        Signed-off-by: Arun Sharma <arun.sharma@xxxxxxxxx>



 b/xen/arch/x86/vmx.c             |    1 
 xen/include/xen/adv_sched_hist.h |   40 ---------------------------------------
 2 files changed, 1 insertion(+), 40 deletions(-)


diff -Nru a/xen/arch/x86/vmx.c b/xen/arch/x86/vmx.c
--- a/xen/arch/x86/vmx.c        2005-05-24 18:02:12 -04:00
+++ b/xen/arch/x86/vmx.c        2005-05-24 18:02:12 -04:00
@@ -43,6 +43,7 @@
 
 int vmcs_size;
 unsigned int opt_vmx_debug_level = 0;
+integer_param("vmx_debug", opt_vmx_debug_level);
 
 extern long evtchn_send(int lport);
 extern long do_block(void);
diff -Nru a/xen/include/xen/adv_sched_hist.h b/xen/include/xen/adv_sched_hist.h
--- a/xen/include/xen/adv_sched_hist.h  2005-05-24 18:02:12 -04:00
+++ /dev/null   Wed Dec 31 16:00:00 196900
@@ -1,40 +0,0 @@
-/* Some functions to suport advanced scheduler histograms
-   Author: Stephan.Diestelhorst@xxxxxxxxxxxx */
-//#include <xen/sched.h>
-//#include <xen/sched-if.h>
-#include <asm/msr.h>
-#define ADV_SCHED_HISTO
-static inline void adv_sched_hist_start(int cpu) {
-       u64 now;
-       rdtscll(now);
-       if (!schedule_data[cpu].save_tsc)
-               schedule_data[cpu].save_tsc = now;
-}
-static inline void adv_sched_hist_from_stop(int cpu) {
-       u64 now;
-       rdtscll(now);
-       if (schedule_data[cpu].save_tsc) {
-               now -= schedule_data[cpu].save_tsc;
-               now /= 7;
-               if (now < BUCKETS-1)
-                       schedule_data[cpu].from_hist[now]++;
-               else
-                       schedule_data[cpu].from_hist[BUCKETS-1]++;
-
-               schedule_data[cpu].save_tsc = 0;
-       }
-}
-static inline void adv_sched_hist_to_stop(int cpu) {
-       u64 now;
-       rdtscll(now);
-       if (schedule_data[cpu].save_tsc) {
-               now -= schedule_data[cpu].save_tsc;
-               now /= 24;
-               if (now < BUCKETS-1)
-                       schedule_data[cpu].to_hist[now]++;
-               else
-                       schedule_data[cpu].to_hist[BUCKETS-1]++;
-
-               schedule_data[cpu].save_tsc = 0;
-       }
-}

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [PATCH] vmx-debug.patch, BitKeeper Bot <=