new files for dynamic prefetch enabling
[IRC.git] / Robust / src / Runtime / DSTM / interface / addPrefetchEnhance.h
1 #ifndef _ADDPREFETCHENHANCE_H_
2 #define _ADDPREFETCHENHANCE_H_
3
4 typedef struct prefetchCountStats {
5   int retrycount;    /* keeps track of when to retry and check if we can turn on this prefetch site */ 
6   int uselesscount; /* keeps track of how long was the prefetching at site useles */ 
7   char operMode; /* 1 = on , 0 = off */
8   int callcount;
9 } pfcstats_t;
10
11 pfcstats_t *initPrefetchStats();
12 int getRetryCount(int siteid);
13 int getUselessCount(int siteid);
14 char getOperationMode(int);
15 void handleDynPrefetching(int, int, int);
16
17 #endif