[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [PATCH] vmx-debug.patch
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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |