ia64/xen-unstable

changeset 5133:3ba11d3c9826

bitkeeper revision 1.1537 (42939e4ewE9MEwuinOdZNB74jNWI-w)

[PATCH] vmx-debug.patch

Allow control of vmx debug log level from the command line.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
author arun.sharma@intel.com[kaf24]
date Tue May 24 21:36:14 2005 +0000 (2005-05-24)
parents 9f22db685802
children 4db1d602c934
files .rootkeys xen/arch/x86/vmx.c xen/include/xen/adv_sched_hist.h
line diff
     1.1 --- a/.rootkeys	Tue May 24 21:17:29 2005 +0000
     1.2 +++ b/.rootkeys	Tue May 24 21:36:14 2005 +0000
     1.3 @@ -1420,7 +1420,6 @@ 4266bd01Ul-pC01ZVvBkhBnv5eqzvw xen/inclu
     1.4  3ddb79c25UE59iu4JJcbRalx95mvcg xen/include/public/xen.h
     1.5  3e397e66m2tO3s-J8Jnr7Ws_tGoPTg xen/include/xen/ac_timer.h
     1.6  40715b2epYl2jBbxzz9CI2rgIca7Zg xen/include/xen/acpi.h
     1.7 -422f0995xCgnbsVhTjSncnqIABs64g xen/include/xen/adv_sched_hist.h
     1.8  427fa2d1wyoVbvCyZRLposYjA_D_4g xen/include/xen/bitmap.h
     1.9  427fa2d1ItcC_yWuBUkhc7adedP5ow xen/include/xen/bitops.h
    1.10  3ddb79c0c0cX_DZE209-Bb-Rx1v-Aw xen/include/xen/cache.h
     2.1 --- a/xen/arch/x86/vmx.c	Tue May 24 21:17:29 2005 +0000
     2.2 +++ b/xen/arch/x86/vmx.c	Tue May 24 21:36:14 2005 +0000
     2.3 @@ -43,6 +43,7 @@
     2.4  
     2.5  int vmcs_size;
     2.6  unsigned int opt_vmx_debug_level = 0;
     2.7 +integer_param("vmx_debug", opt_vmx_debug_level);
     2.8  
     2.9  extern long evtchn_send(int lport);
    2.10  extern long do_block(void);
     3.1 --- a/xen/include/xen/adv_sched_hist.h	Tue May 24 21:17:29 2005 +0000
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,40 +0,0 @@
     3.4 -/* Some functions to suport advanced scheduler histograms
     3.5 -   Author: Stephan.Diestelhorst@cl.cam.ac.uk */
     3.6 -//#include <xen/sched.h>
     3.7 -//#include <xen/sched-if.h>
     3.8 -#include <asm/msr.h>
     3.9 -#define ADV_SCHED_HISTO
    3.10 -static inline void adv_sched_hist_start(int cpu) {
    3.11 -	u64 now;
    3.12 -	rdtscll(now);
    3.13 -	if (!schedule_data[cpu].save_tsc)
    3.14 -		schedule_data[cpu].save_tsc = now;
    3.15 -}
    3.16 -static inline void adv_sched_hist_from_stop(int cpu) {
    3.17 -	u64 now;
    3.18 -	rdtscll(now);
    3.19 -	if (schedule_data[cpu].save_tsc) {
    3.20 -		now -= schedule_data[cpu].save_tsc;
    3.21 -		now /= 7;
    3.22 -		if (now < BUCKETS-1)
    3.23 -			schedule_data[cpu].from_hist[now]++;
    3.24 -		else
    3.25 -			schedule_data[cpu].from_hist[BUCKETS-1]++;
    3.26 -
    3.27 -		schedule_data[cpu].save_tsc = 0;
    3.28 -	}
    3.29 -}
    3.30 -static inline void adv_sched_hist_to_stop(int cpu) {
    3.31 -	u64 now;
    3.32 -	rdtscll(now);
    3.33 -	if (schedule_data[cpu].save_tsc) {
    3.34 -		now -= schedule_data[cpu].save_tsc;
    3.35 -		now /= 24;
    3.36 -		if (now < BUCKETS-1)
    3.37 -			schedule_data[cpu].to_hist[now]++;
    3.38 -		else
    3.39 -			schedule_data[cpu].to_hist[BUCKETS-1]++;
    3.40 -
    3.41 -		schedule_data[cpu].save_tsc = 0;
    3.42 -	}
    3.43 -}