Skip to contentSkip to conversation

tracing: synth events: increase max fields count

PATCH In review Artem Bityutskiy 2 participants 2 messages Sep 1, 2021 – Sep 2, 2021 Tracing

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tracing: synth events: increase max fields count

From: Artem Bityutskiy <[email protected]>

Sometimes it is useful to construct larger synthetic trace events. Increase 'SYNTH_FIELDS_MAX' (maximum number of fields in a synthetic event) from 32 to 64.

---
 kernel/trace/trace_synth.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/trace/trace_synth.h +1 -1
index 4007fe95cf42..b29595fe3ac5 100644
@@ -5,7 +5,7 @@
 #include "trace_dynevent.h"
 
 #define SYNTH_SYSTEM		"synthetic"
-#define SYNTH_FIELDS_MAX	32
+#define SYNTH_FIELDS_MAX	64
 
 #define STR_VAR_LEN_MAX		MAX_FILTER_STR_VAL /* must be multiple of sizeof(u64) */
 
Signature · 1 line
2.31.1
Acked-by on v1 1/1
#1 lore raw

Hi Artem,

Quoted 25 lines · Artem Bityutskiy

From: Artem Bityutskiy <[email protected]>

Sometimes it is useful to construct larger synthetic trace events. Increase
'SYNTH_FIELDS_MAX' (maximum number of fields in a synthetic event) from 32 to
64.

---
 kernel/trace/trace_synth.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/trace/trace_synth.h +1 -1
index 4007fe95cf42..b29595fe3ac5 100644
@@ -5,7 +5,7 @@
 #include "trace_dynevent.h"
 
 #define SYNTH_SYSTEM		"synthetic"
-#define SYNTH_FIELDS_MAX	32
+#define SYNTH_FIELDS_MAX	64
 
 #define STR_VAR_LEN_MAX		MAX_FILTER_STR_VAL /* must be
Quoted 2 lines

multiple of sizeof(u64) */

This looks fine, but it does also bloat the arrays that use it as a size. There's only one that I'd be worried about, the per-elt hist_elt_data[] array, but I'll send a patch shortly that gets rid of that limitation.

Thanks!

Tom