aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/trace_events.h
diff options
context:
space:
mode:
authorTom Zanussi <zanussi@kernel.org>2020-01-31 15:55:34 -0600
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2020-02-01 13:10:15 -0500
commit2b90927c77c973771cc658d639724d5b247a83eb (patch)
treecb8f7ed5df619a5b003ca5f5959c716145ac22d4 /include/linux/trace_events.h
parenttracing: Remove useless code in dynevent_arg_pair_add() (diff)
downloadlinux-dev-2b90927c77c973771cc658d639724d5b247a83eb.tar.xz
linux-dev-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/linux/trace_events.h')
-rw-r--r--include/linux/trace_events.h4
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;