ChampSim
|
#include <algorithm>
#include <assert.h>
#include <cstdint>
#include <map>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../../inc/trace_instruction.h"
Classes | |
struct | trace |
Macros | |
#define | XZ_PATH "/usr/bin/xz" |
#define | GZIP_PATH "/bin/gzip" |
#define | CAT_PATH "/bin/cat" |
#define | UINT64 unsigned long long int |
Typedefs | |
using | trace_instr_format = input_instr |
Enumerations | |
enum | InstClass { aluInstClass = 0 , loadInstClass = 1 , storeInstClass = 2 , condBranchInstClass = 3 , uncondDirectBranchInstClass = 4 , uncondIndirectBranchInstClass = 5 , fpInstClass = 6 , slowAluInstClass = 7 , undefInstClass = 8 } |
enum | OpType { OPTYPE_OP = 2 , OPTYPE_RET_UNCOND , OPTYPE_JMP_DIRECT_UNCOND , OPTYPE_JMP_INDIRECT_UNCOND , OPTYPE_CALL_DIRECT_UNCOND , OPTYPE_CALL_INDIRECT_UNCOND , OPTYPE_RET_COND , OPTYPE_JMP_DIRECT_COND , OPTYPE_JMP_INDIRECT_COND , OPTYPE_CALL_DIRECT_COND , OPTYPE_CALL_INDIRECT_COND , OPTYPE_ERROR , OPTYPE_MAX } |
Functions | |
bool | is_branch (InstClass t) |
auto | open_trace_file (void) |
void | preprocess_file (void) |
UINT64 | transform (UINT64 a) |
int | main (int argc, char **argv) |
Variables | |
bool | verbose = false |
const char * | branch_names [] |
long long int | counts [OPTYPE_MAX] |
std::map< UINT64, bool > | code_pages |
std::map< UINT64, bool > | data_pages |
std::map< UINT64, UINT64 > | remapped_pages |
UINT64 | bump_page = 0x1000 |
char | tracefilename [1000] |
#define CAT_PATH "/bin/cat" |
#define GZIP_PATH "/bin/gzip" |
#define UINT64 unsigned long long int |
#define XZ_PATH "/usr/bin/xz" |
using trace_instr_format = input_instr |
enum InstClass |
enum OpType |
bool is_branch | ( | InstClass | t | ) |
int main | ( | int | argc, |
char ** | argv | ||
) |
auto open_trace_file | ( | void | ) |
void preprocess_file | ( | void | ) |
const char* branch_names[] |
UINT64 bump_page = 0x1000 |
std::map<UINT64, bool> code_pages |
long long int counts[OPTYPE_MAX] |
std::map<UINT64, bool> data_pages |
char tracefilename[1000] |
bool verbose = false |