gdunlap/sched-sim.hg

view stats.h @ 17:03ad237559b4

Fix-up options, scheduler list
author George Dunlap <george.dunlap@eu.citrix.com>
date Fri Jul 16 11:58:53 2010 +0100 (2010-07-16)
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