diff options
author | Tom Zanussi <tom.zanussi@linux.intel.com> | 2018-12-18 23:33:21 +0300 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2018-12-22 16:21:04 +0300 |
commit | 2f31ed9308cc9e95c149078b276a47360ab507bb (patch) | |
tree | 05aa0fffdd7ef9d1101c460d76aca747113f083b /kernel/trace/trace_selftest_dynamic.c | |
parent | 6801f0d5ca00bed159c7f87870cc6f5411837544 (diff) | |
download | linux-2f31ed9308cc9e95c149078b276a47360ab507bb.tar.xz |
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>
Diffstat (limited to 'kernel/trace/trace_selftest_dynamic.c')
0 files changed, 0 insertions, 0 deletions