gdunlap/sched-sim.hg

view stats.h @ 7:e274ac3f81ff

c01: Allow wake to preempt running processes
author George Dunlap <gdunlap@xensource.com>
date Tue Oct 20 18:00:17 2009 +0100 (2009-10-20)
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