forked from 1a1a11a/libCacheSim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinternal.h
More file actions
38 lines (29 loc) · 777 Bytes
/
internal.h
File metadata and controls
38 lines (29 loc) · 777 Bytes
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
#pragma once
#include <inttypes.h>
#include "libCacheSim/enum.h"
#include "libCacheSim/reader.h"
#include "traceAnalyzer/analyzer.h"
#define N_ARGS 2
#define OFILEPATH_LEN 128
#ifdef __cplusplus
extern "C" {
#endif
/* This structure is used to communicate with parse_opt. */
struct arguments {
/* argument from the user */
char *args[N_ARGS];
char *trace_path;
trace_type_e trace_type;
char *trace_type_params;
char ofilepath[OFILEPATH_LEN];
int64_t n_req; /* number of requests to process */
bool verbose;
traceAnalyzer::analysis_option_t analysis_option;
traceAnalyzer::analysis_param_t analysis_param;
/* arguments generated */
reader_t *reader;
};
void parse_cmd(int argc, char *argv[], struct arguments *args);
#ifdef __cplusplus
}
#endif