-
Notifications
You must be signed in to change notification settings - Fork 2
/
pipeline.h
76 lines (62 loc) · 1.79 KB
/
pipeline.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*****************************************************************************
*
* Chronos: A Timing Analyzer for Embedded Software
* =============================================================================
* http://www.comp.nus.edu.sg/~rpembed/chronos/
*
* Copyright (C) 2005 Xianfeng Li
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation; either version 2, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
*
* $Id: pipeline.h,v 1.2 2006/06/24 08:54:57 lixianfe Exp $
*
****************************************************************************/
#ifndef PIPE_LINE_H
#define PIPE_LINE_H
#include "common.h"
#define BODY_CODE 0
#define PLOG_CODE 1
#define ELOG_CODE 2
#define MAX_SSCALAR 4
// microarchitecture-state annotated instruction type
typedef struct {
de_inst_t *inst;
int bbi_id;
int mblk_id;
short mblk_id_l2;
short bp_flag;
short ic_flag;
short ic_flag_l2;
short dc_flag;
short dc_flag_l2;
} mas_inst_t;
typedef struct code_link_t code_link_t;
struct code_link_t {
mas_inst_t *code;
int num_inst;
code_link_t *next;
};
void
dump_units_times(void);
void
dump_mp_times(void);
void
dump_plog_stats(void);
void
dump_elog_stats(void);
void
dump_context_stats(void);
void
dump_elog_len(void);
void
dump_mlat_mpinst(void);
void
pipe_analysis(void);
#endif