00001
00002 #ifndef LIBCHEETAH_H
00003 #define LIBCHEETAH_H
00004
00005 #include <stdio.h>
00006
00007
00008 void
00009 cheetah_init(int argc, char **argv);
00010
00011
00012 void
00013 cheetah_config(FILE *fd);
00014
00015
00016 void
00017 cheetah_access(md_addr_t addr);
00018
00019
00020 void
00021 cheetah_stats(FILE *fd,
00022 int mid);
00023
00024
00025
00026
00027
00028
00029 extern unsigned **sac_hits;
00030
00031
00032 void init_saclru(void);
00033 void sacnmul_woarr(md_addr_t addr);
00034 void outpr_saclru(FILE *fd);
00035
00036 void init_sacopt(void);
00037 int
00038 stack_proc_sa(int start,
00039 int end);
00040 void inf_handler_sa(md_addr_t addr, int cur_time);
00041 void outpr_sacopt(FILE *fd);
00042
00043 void init_dmvl(void);
00044 void dmvl(md_addr_t addr);
00045 void outpr_dmvl(FILE *fd);
00046
00047 void init_faclru(void);
00048 void ptc(md_addr_t addr);
00049 void outpr_faclru(FILE *fd);
00050
00051 void init_facopt(void);
00052 int
00053 stack_proc_fa(int start,
00054 int end);
00055 void inf_handler_fa(md_addr_t addr, int cur_time);
00056 void outpr_facopt(FILE *fd);
00057
00058 void init_optpp(void);
00059 void optpp(md_addr_t addr, int L,
00060 int (*stack_proc)(int start, int end),
00061 void (*inf_handler)(md_addr_t addr, int cur_time));
00062 void ft_hash_del(md_addr_t addr);
00063 void term_optpp(int (*stack_proc)());
00064
00065 #endif