diff options
author | Tom Zanussi <zanussi@kernel.org> | 2020-01-31 15:55:34 -0600 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2020-02-01 13:10:15 -0500 |
commit | 2b90927c77c973771cc658d639724d5b247a83eb (patch) | |
tree | cb8f7ed5df619a5b003ca5f5959c716145ac22d4 /include | |
parent | e9260f6257efa6a6293507696e875b6494ee3744 (diff) | |
download | linux-2b90927c77c973771cc658d639724d5b247a83eb.tar.gz linux-2b90927c77c973771cc658d639724d5b247a83eb.tar.bz2 linux-2b90927c77c973771cc658d639724d5b247a83eb.zip |
tracing: Use seq_buf for building dynevent_cmd string
The dynevent_cmd commands that build up the command string don't need
to do that themselves - there's a seq_buf facility that does pretty
much the same thing those command are doing manually, so use it
instead.
Link: http://lkml.kernel.org/r/eb8a6e835c964d0ab8a38cbf5ffa60746b54a465.1580506712.git.zanussi@kernel.org
Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Tom Zanussi <zanussi@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/trace_events.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/linux/trace_events.h b/include/linux/trace_events.h index 7c307a7c9c6a..67f528ecb9e5 100644 --- a/include/linux/trace_events.h +++ b/include/linux/trace_events.h @@ -367,10 +367,8 @@ struct dynevent_cmd; typedef int (*dynevent_create_fn_t)(struct dynevent_cmd *cmd); struct dynevent_cmd { - char *buf; + struct seq_buf seq; const char *event_name; - int maxlen; - int remaining; unsigned int n_fields; enum dynevent_type type; dynevent_create_fn_t run_command; |