test whole program
This commit is contained in:
@@ -5,15 +5,15 @@
|
||||
#endif
|
||||
|
||||
|
||||
#include "malloc.h"
|
||||
// #include "malloc.h"
|
||||
|
||||
#define malloc MALLOCCHERI
|
||||
#define free FREECHERI
|
||||
// #define malloc MALLOCCHERI
|
||||
// #define free FREECHERI
|
||||
|
||||
int main(int argc, char* argv[] )
|
||||
{
|
||||
// Init alloc
|
||||
INITREGULARALLOC();
|
||||
// INITREGULARALLOC();
|
||||
// =====================================================================
|
||||
// Initialization & Command Line Read-In
|
||||
// =====================================================================
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
#include<assert.h>
|
||||
#include<stdint.h>
|
||||
|
||||
#include "malloc.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define strncasecmp _strnicmp
|
||||
#define strcasecmp _stricmp
|
||||
@@ -50,6 +52,9 @@
|
||||
// Starting Seed
|
||||
#define STARTING_SEED 1070
|
||||
|
||||
#define malloc MALLOCCHERI
|
||||
#define free FREECHERI
|
||||
|
||||
// Structures
|
||||
typedef struct{
|
||||
double energy;
|
||||
|
||||
@@ -152,6 +152,7 @@ pagesizes(size_t ps[MAXPAGESIZES])
|
||||
return (pscnt);
|
||||
}
|
||||
|
||||
__attribute__((constructor))
|
||||
INITREGULARALLOC(void) {
|
||||
size_t sz;
|
||||
// Hard-coded for 1GB huge page
|
||||
|
||||
Reference in New Issue
Block a user