From 105eaa607fdf365324436c803ddd7f3f57ef1431 Mon Sep 17 00:00:00 2001 From: Cedric Roux Date: Fri, 6 Sep 2024 16:39:16 +0200 Subject: [PATCH] T: increase max number of args in an event and make the define more private T_MAX_ARGS was 16 and some people start to use the T machinery with more than 16 values. So be it. Let tracers be friendly and accept 32. (More commits to follow for full support.) Also why is T_MAX_ARGS in T_defs.h when it's only used by event.h? Hum? --- common/utils/T/T_defs.h | 3 --- common/utils/T/tracer/event.h | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/utils/T/T_defs.h b/common/utils/T/T_defs.h index 00e0df4963..13b664a487 100644 --- a/common/utils/T/T_defs.h +++ b/common/utils/T/T_defs.h @@ -36,9 +36,6 @@ /* comment (and recompile everything) to not send time in events */ #define T_SEND_TIME -/* maximum number of arguments for the T macro */ -#define T_MAX_ARGS 16 - /* maximum size of a message - increase if needed */ #define T_BUFFER_MAX (1024*64*4) diff --git a/common/utils/T/tracer/event.h b/common/utils/T/tracer/event.h index 0170ab6680..4e631fbb49 100644 --- a/common/utils/T/tracer/event.h +++ b/common/utils/T/tracer/event.h @@ -7,6 +7,9 @@ #include #endif +/* maximum number of arguments for the T macro */ +#define T_MAX_ARGS 32 + enum event_arg_type { EVENT_INT, EVENT_ULONG,