gdunlap/sched-sim.hg

view workload.h @ 17:03ad237559b4

Fix-up options, scheduler list
author George Dunlap <george.dunlap@eu.citrix.com>
date Fri Jul 16 11:58:53 2010 +0100 (2010-07-16)
parents d27bb3c56e71
children
line source
1 #ifndef __WORKLOAD_H
2 #define __WORKLOAD_H
3 struct sim_phase {
4 enum { PHASE_RUN, PHASE_BLOCK } type;
5 int time;
6 };
8 #define MAX_VMS 16
9 #define MAX_PHASES 16
10 struct vm_workload {
11 int phase_count;
12 const struct sim_phase list[MAX_PHASES];
13 };
15 struct workload {
16 const char * name;
17 int vm_count;
18 const struct vm_workload vm_workloads[MAX_VMS];
19 };
21 extern const int default_workload;
22 extern struct workload builtin_workloads[];
23 #endif