summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_kprobe.c
diff options
context:
space:
mode:
authorTom Zanussi <zanussi@kernel.org>2020-01-31 22:55:34 +0100
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2020-02-01 19:10:15 +0100
commit2b90927c77c973771cc658d639724d5b247a83eb (patch)
treecb8f7ed5df619a5b003ca5f5959c716145ac22d4 /kernel/trace/trace_kprobe.c
parenttracing: Remove useless code in dynevent_arg_pair_add() (diff)
downloadlinux-2b90927c77c973771cc658d639724d5b247a83eb.tar.xz
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 'kernel/trace/trace_kprobe.c')
-rw-r--r--kernel/trace/trace_kprobe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace_kprobe.c b/kernel/trace/trace_kprobe.c
index fe183d4045d2..51efc790aea8 100644
--- a/kernel/trace/trace_kprobe.c
+++ b/kernel/trace/trace_kprobe.c
@@ -903,7 +903,7 @@ static int create_or_delete_trace_kprobe(int argc, char **argv)
static int trace_kprobe_run_command(struct dynevent_cmd *cmd)
{
- return trace_run_command(cmd->buf, create_or_delete_trace_kprobe);
+ return trace_run_command(cmd->seq.buffer, create_or_delete_trace_kprobe);
}
/**