]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Use str_has_prefix() in synth_event_create()
authorTom Zanussi <tom.zanussi@linux.intel.com>
Mon, 4 Feb 2019 21:07:23 +0000 (15:07 -0600)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 5 Mar 2019 13:47:46 +0000 (08:47 -0500)
commit00cedea29cecc5964950b318c1901c05e2bce7ff
tree007083cb3a52cf208b603113a684fa8f14155956
parent8679ee959e555b301515f16096c623d9030958c4
tracing: Use str_has_prefix() in synth_event_create()

Since we now have a str_has_prefix() that returns the length, we can
use that instead of explicitly calculating it.

Link: http://lkml.kernel.org/r/03418373fd1e80030e7394b8e3e081c5de28a710.1549309756.git.tom.zanussi@linux.intel.com
Cc: Joe Perches <joe@perches.com>
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