From db3e928f6c84d6d86369ab77be35983a3e96dd1d Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 17 Jan 2020 02:47:29 +0100 Subject: improve chattymalloc and chattyparser chattymalloc is now more deterministic through binary logging. It seems we aren't loosing traces anymore and need less space. Each thread has it private tracebuffer, which gets passed to write() for each function call. chattyparser now parses binary traces while producing a plain text representation. It can also detect mostly all possible false sharing through traking the cached lines for all life allocations. Only allocations passed between threads are not tracked correctly as well as thread termination. --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index 6d25bf9..15bc8ec 100644 --- a/src/Makefile +++ b/src/Makefile @@ -29,7 +29,7 @@ $(OBJDIR)/allocators/speedymalloc.so: speedymalloc.c Makefile @if test \( ! \( -d $(@D) \) \) ;then mkdir -p $(@D);fi $(CC) $(LDFLAGS) -shared -DMEMSIZE=$(MEMSIZE) $(CFLAGS) -o $@ $< -$(OBJDIR)/allocators/chattymalloc.so: chattymalloc.c Makefile +$(OBJDIR)/allocators/chattymalloc.so: chattymalloc.h chattymalloc.c Makefile @if test \( ! \( -d $(@D) \) \) ;then mkdir -p $(@D);fi $(CC) $(LDFLAGS) -shared $(CFLAGS) -o $@ $< -ldl -- cgit v1.2.3 From 222423a642eb8fc984833f3d344a421fe3a34047 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 22 Jan 2020 16:46:11 +0100 Subject: fix compilation of chattymalloc --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index 15bc8ec..71b4967 100644 --- a/src/Makefile +++ b/src/Makefile @@ -31,7 +31,7 @@ $(OBJDIR)/allocators/speedymalloc.so: speedymalloc.c Makefile $(OBJDIR)/allocators/chattymalloc.so: chattymalloc.h chattymalloc.c Makefile @if test \( ! \( -d $(@D) \) \) ;then mkdir -p $(@D);fi - $(CC) $(LDFLAGS) -shared $(CFLAGS) -o $@ $< -ldl + $(CC) $(LDFLAGS) -shared $(CFLAGS) -o $@ chattymalloc.c -ldl $(OBJDIR)/print_status_on_exit.so: print_status_on_exit.c Makefile @if test \( ! \( -d $(@D) \) \) ;then mkdir -p $(@D);fi -- cgit v1.2.3