aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/sched-if.h
diff options
context:
space:
mode:
authoriap10@freefall.cl.cam.ac.uk <iap10@freefall.cl.cam.ac.uk>2005-04-21 01:42:29 +0000
committeriap10@freefall.cl.cam.ac.uk <iap10@freefall.cl.cam.ac.uk>2005-04-21 01:42:29 +0000
commite631a47cf600b0b5b46026756d6764fb6c9847c3 (patch)
tree6d3575a1903dd1d1dc4bed4e7e3fd38faa463d95 /xen/include/xen/sched-if.h
parent10eba6b169bae7e93b59f5c6eba8c32ed4bd5069 (diff)
parent8b521bdf6b4b707bcdacb4f1d428924b8a5453e4 (diff)
downloadxen-e631a47cf600b0b5b46026756d6764fb6c9847c3.tar.gz
xen-e631a47cf600b0b5b46026756d6764fb6c9847c3.tar.bz2
xen-e631a47cf600b0b5b46026756d6764fb6c9847c3.zip
bitkeeper revision 1.1346.1.1 (42670505dNhgnJm5dQD81pCalXMZgw)
manual merge
Diffstat (limited to 'xen/include/xen/sched-if.h')
-rw-r--r--xen/include/xen/sched-if.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/xen/include/xen/sched-if.h b/xen/include/xen/sched-if.h
index 3e352f4fe8..7cd5295fea 100644
--- a/xen/include/xen/sched-if.h
+++ b/xen/include/xen/sched-if.h
@@ -8,6 +8,10 @@
#ifndef __XEN_SCHED_IF_H__
#define __XEN_SCHED_IF_H__
+//#define ADV_SCHED_HISTO
+#define BUCKETS 10
+/*300*/
+
struct schedule_data {
spinlock_t schedule_lock; /* spinlock protecting curr */
struct exec_domain *curr; /* current task */
@@ -15,6 +19,11 @@ struct schedule_data {
void *sched_priv;
struct ac_timer s_timer; /* scheduling timer */
unsigned long tick; /* current periodic 'tick' */
+#ifdef ADV_SCHED_HISTO
+ u32 to_hist[BUCKETS];
+ u32 from_hist[BUCKETS];
+ u64 save_tsc;
+#endif
#ifdef BUCKETS
u32 hist[BUCKETS]; /* for scheduler latency histogram */
#endif