gdunlap/sched-sim.hg

diff stats.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/stats.h	Tue Oct 13 16:06:36 2009 +0100
     1.3 @@ -0,0 +1,16 @@
     1.4 +#ifndef _STATS_H
     1.5 +#define _STATS_H
     1.6 +
     1.7 +typedef unsigned long long tsc_t;
     1.8 +
     1.9 +struct cycle_summary {
    1.10 +    int count;
    1.11 +    unsigned long long cycles;
    1.12 +    long long *sample;
    1.13 +};
    1.14 +
    1.15 +void set_sample_size(int n);
    1.16 +void update_cycles(struct cycle_summary *s, long long c);
    1.17 +void print_cycle_summary(struct cycle_summary *s,
    1.18 +                         tsc_t total, char *p);
    1.19 +#endif