]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Change strlen to sizeof for hist trigger static strings
authorTom Zanussi <tom.zanussi@linux.intel.com>
Tue, 18 Dec 2018 20:33:21 +0000 (14:33 -0600)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Sat, 22 Dec 2018 13:21:04 +0000 (08:21 -0500)
commitc062a174bd695472b4b21a59a068e60fdf3f93ab
tree05aa0fffdd7ef9d1101c460d76aca747113f083b
parent1341c9226892bdc005d79af65616ff868ccdbc5c
tracing: Change strlen to sizeof for hist trigger static strings

There's no need to use strlen() for static strings when the length is
already known, so update trace_events_hist.c with sizeof() for those
cases.

Link: http://lkml.kernel.org/r/e3e754f2bd18e56eaa8baf79bee619316ebf4cfc.1545161087.git.tom.zanussi@linux.intel.com
Acked-by: Namhyung Kim <namhyung@kernel.org>
Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_events_hist.c