gdunlap/sched-sim.hg

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