tracing: Make sure the parsed string always terminates with '\0'
authorChangbin Du <changbin.du@intel.com>
Tue, 16 Jan 2018 09:02:30 +0000 (17:02 +0800)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 23 Jan 2018 20:57:28 +0000 (15:57 -0500)
commitf4d0706cde27f29ff89e6bf94ded4113f8fe6e80
tree5cd8ddafa8948c8f64fb52c88d61f85d2d773cb7
parent76638d96502744b0d593f2386b75ae5a017c13bb
tracing: Make sure the parsed string always terminates with '\0'

Always mark the parsed string with a terminated nul '\0' character. This removes
the need for the users to have to append the '\0' before using the parsed string.

Link: http://lkml.kernel.org/r/1516093350-12045-4-git-send-email-changbin.du@intel.com
Acked-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Changbin Du <changbin.du@intel.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/ftrace.c
kernel/trace/trace.c
kernel/trace/trace_events.c