diff options
author | Tom Zanussi <zanussi@kernel.org> | 2020-10-05 00:14:03 +0200 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2020-10-06 00:13:53 +0200 |
commit | 4a4a56b4e76bbe3211c4f93d99c0c1543f5f3230 (patch) | |
tree | db49911691e2260abce125a982007e3b49acaad1 /kernel/trace/trace_synth.h | |
parent | ftrace: Fix some typos in comment (diff) | |
download | linux-4a4a56b4e76bbe3211c4f93d99c0c1543f5f3230.tar.xz linux-4a4a56b4e76bbe3211c4f93d99c0c1543f5f3230.zip |
tracing: Change STR_VAR_MAX_LEN
32 is too small for this value, and anyway it makes more sense to use
MAX_FILTER_STR_VAL, as this is also the value used for variable-length
__strings.
Link: https://lkml.kernel.org/r/6adfd1668ac1fd8670bd58206944a762061a5559.1601848695.git.zanussi@kernel.org
Tested-by: Axel Rasmussen <axelrasmussen@google.com>
Signed-off-by: Tom Zanussi <zanussi@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_synth.h')
-rw-r--r-- | kernel/trace/trace_synth.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace_synth.h b/kernel/trace/trace_synth.h index ac35c45207c4..5166705d1556 100644 --- a/kernel/trace/trace_synth.h +++ b/kernel/trace/trace_synth.h @@ -7,7 +7,7 @@ #define SYNTH_SYSTEM "synthetic" #define SYNTH_FIELDS_MAX 32 -#define STR_VAR_LEN_MAX 32 /* must be multiple of sizeof(u64) */ +#define STR_VAR_LEN_MAX MAX_FILTER_STR_VAL /* must be multiple of sizeof(u64) */ struct synth_field { char *type; |