gdunlap/sched-sim.hg

diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/workload.h	Tue Oct 13 16:06:36 2009 +0100
     1.3 @@ -0,0 +1,23 @@
     1.4 +#ifndef __WORKLOAD_H
     1.5 +#define __WORKLOAD_H
     1.6 +struct sim_phase {
     1.7 +    enum { PHASE_RUN, PHASE_BLOCK } type;
     1.8 +    int time;
     1.9 +};
    1.10 +
    1.11 +#define MAX_VMS 16
    1.12 +#define MAX_PHASES 16
    1.13 +struct vm_workload {
    1.14 +    int phase_count;
    1.15 +    const struct sim_phase list[MAX_PHASES];
    1.16 +};
    1.17 +
    1.18 +struct workload {
    1.19 +    const char * name;
    1.20 +    int vm_count;
    1.21 +    const struct vm_workload vm_workloads[MAX_VMS];
    1.22 +};
    1.23 +
    1.24 +extern const int default_workload;
    1.25 +extern struct workload builtin_workloads[];
    1.26 +#endif