gdunlap/sched-sim.hg
view stats.h @ 1:ec2d50e41437
Handle multiple cpus.
author | George Dunlap <gdunlap@xensource.com> |
---|---|
date | Tue Oct 13 17:29:50 2009 +0100 (2009-10-13) |
parents | d27bb3c56e71 |
children |
line source
1 #ifndef _STATS_H
2 #define _STATS_H
4 typedef unsigned long long tsc_t;
6 struct cycle_summary {
7 int count;
8 unsigned long long cycles;
9 long long *sample;
10 };
12 void set_sample_size(int n);
13 void update_cycles(struct cycle_summary *s, long long c);
14 void print_cycle_summary(struct cycle_summary *s,
15 tsc_t total, char *p);
16 #endif