Line 18... |
Line 18... |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|
|
#define DSTATS_LEN 3000
|
#define DSTATS_LEN 3000
|
#define SSTATS_LEN 300
|
#define SSTATS_LEN 300
|
#define FSTATS_LEN 200
|
#define FSTATS_LEN 200
|
|
#define RAW_RANGE 13
|
|
|
struct dstats_entry {
|
struct dstats_entry {
|
char insn1[OPERANDNAME_LEN];
|
char insn1[OPERANDNAME_LEN];
|
char insn2[OPERANDNAME_LEN];
|
char insn2[OPERANDNAME_LEN];
|
int cnt_dynamic;
|
int cnt_dynamic;
|
Line 64... |
Line 65... |
struct branchstat bnez;
|
struct branchstat bnez;
|
struct bpbstat bpb;
|
struct bpbstat bpb;
|
struct bticstat btic;
|
struct bticstat btic;
|
}; /* misc units stats */
|
}; /* misc units stats */
|
|
|
|
struct cachestats_entry {
|
|
int readhit;
|
|
int readmiss;
|
|
int writehit;
|
|
int writemiss;
|
|
}; /* cache stats */
|
|
|
|
struct raw_stats {
|
|
int reg[64];
|
|
int range[RAW_RANGE];
|
|
}; /* RAW hazard stats */
|
|
|
extern struct mstats_entry mstats;
|
extern struct mstats_entry mstats;
|
extern struct sstats_entry sstats[SSTATS_LEN];
|
extern struct sstats_entry sstats[SSTATS_LEN];
|
extern struct dstats_entry dstats[DSTATS_LEN];
|
extern struct dstats_entry dstats[DSTATS_LEN];
|
extern struct fstats_entry fstats[FSTATS_LEN];
|
extern struct fstats_entry fstats[FSTATS_LEN];
|
|
extern struct cachestats_entry ic_stats;
|
|
extern struct cachestats_entry dc_stats;
|
|
extern struct raw_stats raw_stats;
|
|
|
extern int check_depend();
|
extern int check_depend();
|
extern void addsstats(char *item, int cnt_dynamic, int cnt_static);
|
extern void addsstats(char *item, int cnt_dynamic, int cnt_static);
|
extern void adddstats(char *item1, char *item2, int cnt_dynamic, int depend);
|
extern void adddstats(char *item1, char *item2, int cnt_dynamic, int depend);
|
extern void addfstats(enum insn_type item1, enum insn_type item2, int cnt_dynamic, int depend);
|
extern void addfstats(enum insn_type item1, enum insn_type item2, int cnt_dynamic, int depend);
|