feat: disable mask
This commit is contained in:
parent
96bd340675
commit
138868b66f
@ -18,7 +18,8 @@
|
||||
#define ALIGN_std 2 << 20
|
||||
#define PATT_LEN 1024
|
||||
#define AGGR_std 2
|
||||
#define HUGE_YES
|
||||
|
||||
// #define HUGE_YES
|
||||
|
||||
typedef struct ProfileParams {
|
||||
uint64_t g_flags = 0;
|
||||
@ -32,7 +33,7 @@ typedef struct ProfileParams {
|
||||
size_t rounds = ROUNDS_std;
|
||||
size_t base_off = 0;
|
||||
char *huge_file = (char *) HUGETLB_std;
|
||||
int huge_fd;
|
||||
int huge_fd = 0;
|
||||
char *conf_file = (char *) CONFIG_NAME_std;
|
||||
int aggr = AGGR_std;
|
||||
} ProfileParams;
|
||||
|
@ -1,17 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#define STRIPE_SHIFT 0 // not needed anymore
|
||||
#define O2Z (0b01 << STRIPE_SHIFT) // ONE_TO_ZERO
|
||||
#define Z2O (0b10 << STRIPE_SHIFT) // ZERO_TO_ONE
|
||||
#define O2Z (0b01 << STRIPE_SHIFT)// ONE_TO_ZERO
|
||||
#define Z2O (0b10 << STRIPE_SHIFT)// ZERO_TO_ONE
|
||||
#define REVERSE_VAL (O2Z ^ Z2O) // if you xor REVERSE with one of the stripe val it will give you the opposite
|
||||
|
||||
static const char *config_str[] =
|
||||
{ "assisted-dbl", "free-triple", "%i_sided"};
|
||||
static const char *data_str[] = { "random", "i2o", "o2i" };
|
||||
static const char *config_str[] = {"assisted-dbl", "free-triple", "%i_sided"};
|
||||
static const char *data_str[] = {"random", "i2o", "o2i"};
|
||||
|
||||
typedef enum {
|
||||
ASSISTED_DOUBLE_SIDED,
|
||||
@ -19,12 +18,7 @@ typedef enum {
|
||||
N_SIDED,
|
||||
} HammerConfig;
|
||||
|
||||
typedef enum {
|
||||
RANDOM,
|
||||
ONE_TO_ZERO = O2Z,
|
||||
ZERO_TO_ONE = Z2O,
|
||||
REVERSE = REVERSE_VAL
|
||||
} HammerData;
|
||||
typedef enum { RANDOM, ONE_TO_ZERO = O2Z, ZERO_TO_ONE = Z2O, REVERSE = REVERSE_VAL } HammerData;
|
||||
|
||||
typedef uint64_t physaddr_t;
|
||||
|
||||
@ -40,15 +34,15 @@ typedef struct {
|
||||
HammerData d_cfg;
|
||||
size_t h_rows;
|
||||
size_t h_rounds;
|
||||
size_t base_off; // offset from the beginning of the contig chunk
|
||||
size_t base_off;// offset from the beginning of the contig chunk
|
||||
int aggr_n;
|
||||
} SessionConfig;
|
||||
|
||||
typedef struct {
|
||||
char *buffer; // base addr
|
||||
pte_t *physmap; // list of virt<->phys mapping for every page
|
||||
pte_t *physmap;// list of virt<->phys mapping for every page
|
||||
int fd; // fd in the case of mmap hugetlbfs
|
||||
uint64_t size; // in bytes
|
||||
uint64_t align;
|
||||
uint64_t flags; // from params
|
||||
uint64_t flags;// from params
|
||||
} MemoryBuffer;
|
||||
|
Loading…
Reference in New Issue
Block a user