feat: alloc 512MB
This commit is contained in:
parent
247d35ecb1
commit
88c4f3238c
@ -10,31 +10,31 @@
|
|||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#define ROUNDS_std 1000000
|
#define ROUNDS_std 1000000
|
||||||
#define HUGETLB_std "/mnt/huge/buff"
|
#define HUGETLB_std "/mnt/huge/buff"
|
||||||
#define CONFIG_NAME_std "tmp/s_cfg.bin"
|
#define CONFIG_NAME_std "tmp/s_cfg.bin"
|
||||||
#define O_FILE_std "DIMM00"
|
#define O_FILE_std "DIMM00"
|
||||||
#define ALLOC_SIZE 1<<30
|
#define ALLOC_SIZE 1 << 29
|
||||||
#define ALIGN_std 2<<20
|
#define ALIGN_std 2 << 20
|
||||||
#define PATT_LEN 1024
|
#define PATT_LEN 1024
|
||||||
#define AGGR_std 2
|
#define AGGR_std 2
|
||||||
#define HUGE_YES
|
#define HUGE_YES
|
||||||
|
|
||||||
typedef struct ProfileParams {
|
typedef struct ProfileParams {
|
||||||
uint64_t g_flags = 0;
|
uint64_t g_flags = 0;
|
||||||
char *g_out_prefix;
|
char *g_out_prefix;
|
||||||
char *tpat = (char *)NULL;
|
char *tpat = (char *) NULL;
|
||||||
char *vpat = (char *)NULL;
|
char *vpat = (char *) NULL;
|
||||||
int threshold = 0;
|
int threshold = 0;
|
||||||
int fuzzing = 0; // start fuzzing!!
|
int fuzzing = 0;// start fuzzing!!
|
||||||
size_t m_size = ALLOC_SIZE;
|
size_t m_size = ALLOC_SIZE;
|
||||||
size_t m_align = ALIGN_std;
|
size_t m_align = ALIGN_std;
|
||||||
size_t rounds = ROUNDS_std;
|
size_t rounds = ROUNDS_std;
|
||||||
size_t base_off = 0;
|
size_t base_off = 0;
|
||||||
char *huge_file = (char *)HUGETLB_std;
|
char *huge_file = (char *) HUGETLB_std;
|
||||||
int huge_fd;
|
int huge_fd;
|
||||||
char *conf_file = (char *)CONFIG_NAME_std;
|
char *conf_file = (char *) CONFIG_NAME_std;
|
||||||
int aggr = AGGR_std;
|
int aggr = AGGR_std;
|
||||||
} ProfileParams;
|
} ProfileParams;
|
||||||
|
|
||||||
int process_argv(int argc, char *argv[], ProfileParams *params);
|
int process_argv(int argc, char *argv[], ProfileParams *params);
|
||||||
|
Loading…
Reference in New Issue
Block a user