gdunlap/sched-sim.hg

annotate 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
rev   line source
gdunlap@0 1 #ifndef __WORKLOAD_H
gdunlap@0 2 #define __WORKLOAD_H
gdunlap@0 3 struct sim_phase {
gdunlap@0 4 enum { PHASE_RUN, PHASE_BLOCK } type;
gdunlap@0 5 int time;
gdunlap@0 6 };
gdunlap@0 7
gdunlap@0 8 #define MAX_VMS 16
gdunlap@0 9 #define MAX_PHASES 16
gdunlap@0 10 struct vm_workload {
gdunlap@0 11 int phase_count;
gdunlap@0 12 const struct sim_phase list[MAX_PHASES];
gdunlap@0 13 };
gdunlap@0 14
gdunlap@0 15 struct workload {
gdunlap@0 16 const char * name;
gdunlap@0 17 int vm_count;
gdunlap@0 18 const struct vm_workload vm_workloads[MAX_VMS];
gdunlap@0 19 };
gdunlap@0 20
gdunlap@0 21 extern const int default_workload;
gdunlap@0 22 extern struct workload builtin_workloads[];
gdunlap@0 23 #endif