start of new file
[IRC.git] / Robust / src / Runtime / DSTM / interface / addPrefetchEnhance.h
1 #ifndef _ADDPREFETCHENHANCE_H_
2 #define _ADDPREFETCHENHANCE_H_
3
4 #include "dstm.h"
5 #include "mlookup.h"
6 #include "gCollect.h"
7
8 typedef struct prefetchCountStats {
9   int retrycount;    /* keeps track of when to retry and check if we can turn on this prefetch site */ 
10   int uselesscount; /* keeps track of how long was the prefetching at site useles */ 
11   char operMode; /* 1 = on , 0 = off */
12   int callcount;
13 } pfcstats_t;
14
15 pfcstats_t *initPrefetchStats();
16 int getRetryCount(int siteid);
17 int getUselessCount(int siteid);
18 char getOperationMode(int);
19 void handleDynPrefetching(int, int, int);
20 void cleanPCache(thread_data_array_t *tdata);
21 int updatePrefetchCache(thread_data_array_t *);
22 int copyToCache(int , unsigned int *, thread_data_array_t *, char );
23
24 #endif