#include "lwt.h"
#include "mem.h"
-#define LWT_BUFFER_SCALE 16
-#define LWT_BUFFER_SIZE (1 << LWT_BUFFER_SCALE)
+#define LWT_BUFFER_SCALE 20
+#define LWT_BUFFER_SIZE (1ULL << LWT_BUFFER_SCALE)
#define LWT_BUFFER_MASK (LWT_BUFFER_SIZE - 1)
volatile int halt_ = 0;
typedef struct lwt_record {
uint64_t timestamp;
uint64_t format;
- uint64_t value1;
- uint64_t value2;
+ size_t value1;
+ size_t value2;
} lwt_record_t;
typedef struct lwt_buffer {
}
}
-static inline void dump_record (FILE *file, int thread_id, lwt_record_t *r, uint64_t offset)
+static void dump_record (FILE *file, int thread_id, lwt_record_t *r, uint64_t offset)
{
// print the record if its trace category is enabled at a high enough level
int flag = r->format >> 56;