gdunlap/sched-sim.hg

view workload.h @ 0:d27bb3c56e71

Inital commit.
author George Dunlap <gdunlap@xensource.com>
date Tue Oct 13 16:06:36 2009 +0100 (2009-10-13)
parents
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