From b856f645a2f58a3e224976167b4b1fb030d7967b Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Mon, 11 Jul 2016 20:50:34 -0400 Subject: Update to new binary file-based trace file. In order to not lose records, or need to guess ahead of time how many records you need, this switches to a mmap'd file for the trace buffer, and grows it as needed. The trace2dat perl script is replaced with a trace2wl C++ program that runs a lot faster and can handle the binary format. --- malloc/trace_run.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'malloc/trace_run.c') diff --git a/malloc/trace_run.c b/malloc/trace_run.c index a4e16ba4e8..a42e81d80f 100644 --- a/malloc/trace_run.c +++ b/malloc/trace_run.c @@ -11,20 +11,7 @@ #include #include "malloc.h" - -/* These must stay in sync with trace2dat */ -#define C_NOP 0 -#define C_DONE 1 -#define C_MALLOC 2 -#define C_CALLOC 3 -#define C_REALLOC 4 -#define C_FREE 5 -#define C_SYNC_W 6 -#define C_SYNC_R 7 -#define C_ALLOC_PTRS 8 -#define C_ALLOC_SYNCS 9 -#define C_NTHREADS 10 -#define C_START_THREAD 11 +#include "mtrace.h" #if UINTPTR_MAX == 0xffffffffffffffff -- cgit v1.2.3