gdunlap/sched-sim.hg

view 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 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