gdunlap/sched-sim.hg
annotate 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 |
rev | line source |
---|---|
gdunlap@0 | 1 #ifndef _STATS_H |
gdunlap@0 | 2 #define _STATS_H |
gdunlap@0 | 3 |
gdunlap@0 | 4 typedef unsigned long long tsc_t; |
gdunlap@0 | 5 |
gdunlap@0 | 6 struct cycle_summary { |
gdunlap@0 | 7 int count; |
gdunlap@0 | 8 unsigned long long cycles; |
gdunlap@0 | 9 long long *sample; |
gdunlap@0 | 10 }; |
gdunlap@0 | 11 |
gdunlap@0 | 12 void set_sample_size(int n); |
gdunlap@0 | 13 void update_cycles(struct cycle_summary *s, long long c); |
gdunlap@0 | 14 void print_cycle_summary(struct cycle_summary *s, |
gdunlap@0 | 15 tsc_t total, char *p); |
gdunlap@0 | 16 #endif |