• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

sst/core/techModels/libsim-panalyzer/libcheetah/libcheetah.h

00001 
00002 #ifndef LIBCHEETAH_H
00003 #define LIBCHEETAH_H
00004 
00005 #include <stdio.h>
00006 
00007 /* initialize libcheetah */
00008 void
00009 cheetah_init(int argc, char **argv);    /* cheetah arguments */
00010 
00011 /* output the analysis configuration */
00012 void
00013 cheetah_config(FILE *fd);               /* output stream */
00014 
00015 /* pass a memory address to libcheetah */
00016 void
00017 cheetah_access(md_addr_t addr);         /* address of access */
00018 
00019 /* output the trace statistics */
00020 void
00021 cheetah_stats(FILE *fd,                 /* output stream */
00022               int mid);                 /* intermediate stats? */
00023 
00024 /* set-associative statistics
00025      - ok to access after calling cheetah_stats()
00026      - arranged as:
00027          sac_hits[set size: min-sets..max-sets][assoc: min-depth..max-depth]
00028 */
00029 extern unsigned **sac_hits;
00030 
00031 /* internal interfaces */
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,                /* index of starting array location */
00039               int end);                 /* index of ending array location */
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,                /* index of starting array location */
00054               int end);                 /* index of ending array location */
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 /* LIBCHEETAH_H */

Generated on Fri Oct 22 2010 11:02:19 for SST by  doxygen 1.7.1