From 8db3dafe61e2074c6ea51ae25aec255f361e6557 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 1 May 2020 15:47:25 +0200 Subject: improve chattymalloc trace infrastructure * Detect empty entries. * Parse the trace entries using the struct python library * fix realloc accounting * multiple fixes in chattyparser --- src/chattymalloc.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/chattymalloc.h') diff --git a/src/chattymalloc.h b/src/chattymalloc.h index 38c42d4..5120193 100644 --- a/src/chattymalloc.h +++ b/src/chattymalloc.h @@ -17,9 +17,11 @@ You should have received a copy of the GNU General Public License along with allocbench. If not, see . */ -#include +#include // uint8_t +#include // pid_t enum functions { + UNINITIALIZED, MALLOC, FREE, REALLOC, @@ -32,10 +34,10 @@ enum functions { THREAD_TERMINATION}; typedef struct trace { - pid_t tid; void* ptr; size_t size; size_t var_arg; + pid_t tid; char func; } __attribute__((packed)) trace_t; -- cgit v1.2.3