summaryrefslogtreecommitdiff
path: root/kernel/trace/trace_kprobe.c
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 /kernel/trace/trace_kprobe.c
parente9260f6257efa6a6293507696e875b6494ee3744 (diff)
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);
}
/**