diff options
author | arun.sharma@intel.com[kaf24] <arun.sharma@intel.com[kaf24]> | 2005-05-24 21:36:14 +0000 |
---|---|---|
committer | arun.sharma@intel.com[kaf24] <arun.sharma@intel.com[kaf24]> | 2005-05-24 21:36:14 +0000 |
commit | 697c3a1bee42b92d0a637a0b48e64fd9946714a7 (patch) | |
tree | df76aa06f527903788b685ea96b4fad349f32615 | |
parent | eeac5f31a3485077992879d17f861f733659edbb (diff) | |
download | xen-697c3a1bee42b92d0a637a0b48e64fd9946714a7.tar.gz xen-697c3a1bee42b92d0a637a0b48e64fd9946714a7.tar.bz2 xen-697c3a1bee42b92d0a637a0b48e64fd9946714a7.zip |
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>
-rw-r--r-- | .rootkeys | 1 | ||||
-rw-r--r-- | xen/arch/x86/vmx.c | 1 | ||||
-rw-r--r-- | xen/include/xen/adv_sched_hist.h | 40 |
3 files changed, 1 insertions, 41 deletions
@@ -1420,7 +1420,6 @@ 3ddb79c25UE59iu4JJcbRalx95mvcg xen/include/public/xen.h 3e397e66m2tO3s-J8Jnr7Ws_tGoPTg xen/include/xen/ac_timer.h 40715b2epYl2jBbxzz9CI2rgIca7Zg xen/include/xen/acpi.h -422f0995xCgnbsVhTjSncnqIABs64g xen/include/xen/adv_sched_hist.h 427fa2d1wyoVbvCyZRLposYjA_D_4g xen/include/xen/bitmap.h 427fa2d1ItcC_yWuBUkhc7adedP5ow xen/include/xen/bitops.h 3ddb79c0c0cX_DZE209-Bb-Rx1v-Aw xen/include/xen/cache.h diff --git a/xen/arch/x86/vmx.c b/xen/arch/x86/vmx.c index c98913f578..80c778a2de 100644 --- a/xen/arch/x86/vmx.c +++ b/xen/arch/x86/vmx.c @@ -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 --git a/xen/include/xen/adv_sched_hist.h b/xen/include/xen/adv_sched_hist.h deleted file mode 100644 index d8d56275d4..0000000000 --- a/xen/include/xen/adv_sched_hist.h +++ /dev/null @@ -1,40 +0,0 @@ -/* Some functions to suport advanced scheduler histograms - Author: Stephan.Diestelhorst@cl.cam.ac.uk */ -//#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; - } -} |