-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmain.h
47 lines (44 loc) · 829 Bytes
/
main.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
#pragma once
#include <vector>
using namespace std;
class input_paras {
public:
int niter;
unsigned int k;
int bm;
bool bm_from_file;
string bytecode;
string map;
string desc;
double w_e;
double w_p;
bool meas_mode;
string path_out;
int st_ex;
int st_eq;
int st_avg;
int st_perf;
int st_when_to_restart;
int st_when_to_restart_niter;
int st_start_prog;
vector<double> restart_w_e_list;
vector<double> restart_w_p_list;
int reset_win_niter;
vector<int> win_s_list;
vector<int> win_e_list;
double p_inst_operand;
double p_inst;
double p_inst_as_nop;
bool disable_prog_eq_cache;
bool enable_prog_uneq_cache;
bool is_win;
int logger_level;
int server_port;
};
struct bpf_insn {
uint8_t opcode;
uint8_t dst_reg: 4;
uint8_t src_reg: 4;
short off;
int imm;
};